Skip to content

Commit 7d060e4

Browse files
authored
Merge pull request #9 from cparata/master
Add Continuous Integration
2 parents 3447f1b + af1334f commit 7d060e4

File tree

5 files changed

+70
-7
lines changed

5 files changed

+70
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: VL53L1 Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- '*'
8+
- '**.md'
9+
- '**.txt'
10+
pull_request:
11+
paths-ignore:
12+
- '*'
13+
- '**.md'
14+
- '**.txt'
15+
jobs:
16+
astyle_check:
17+
runs-on: ubuntu-latest
18+
name: AStyle check
19+
steps:
20+
# First of all, clone the repo using the checkout action.
21+
- name: Checkout
22+
uses: actions/checkout@master
23+
24+
- name: Astyle check
25+
id: Astyle
26+
uses: stm32duino/actions/astyle-check@master
27+
28+
# Use the output from the `Astyle` step
29+
- name: Astyle Errors
30+
if: failure()
31+
run: |
32+
cat ${{ steps.Astyle.outputs.astyle-result }}
33+
exit 1
34+
spell-check:
35+
runs-on: ubuntu-latest
36+
name: Spell check
37+
steps:
38+
- uses: actions/checkout@master
39+
- uses: arduino/actions/libraries/spell-check@master
40+
with:
41+
ignore-words-list: "./extras/codespell-ignore-words-list.txt"
42+
lib_build:
43+
runs-on: ubuntu-latest
44+
name: Library compilation
45+
steps:
46+
# First of all, clone the repo using the checkout action.
47+
- name: Checkout
48+
uses: actions/checkout@master
49+
50+
- name: Compilation
51+
id: Compile
52+
uses: stm32duino/actions/compile-examples@master
53+
with:
54+
board-pattern: "NUCLEO_L476RG"
55+
56+
# Use the output from the `Compile` step
57+
- name: Compilation Errors
58+
if: failure()
59+
run: |
60+
cat ${{ steps.Compile.outputs.compile-result }}
61+
exit 1
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hist
2+
pres

src/ComponentObject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ComponentObject {
5656
public:
5757
/**
5858
* @brief Initializing the component.
59-
* @param[in] init pointer to device specific initalization structure.
59+
* @param[in] init pointer to device specific initialization structure.
6060
* @retval "0" in case of success, an error code otherwise.
6161
*/
6262
virtual int Init() = 0;

src/vl53l1_def.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ typedef uint8_t VL53L1_State;
392392
typedef uint8_t VL53L1_SmudgeCorrectionModes;
393393

394394
#define VL53L1_SMUDGE_CORRECTION_NONE ((VL53L1_SmudgeCorrectionModes) 0)
395-
/*!< Smudge correction is applied continously accross the rangings */
395+
/*!< Smudge correction is applied continuously across the rangings */
396396
#define VL53L1_SMUDGE_CORRECTION_CONTINUOUS ((VL53L1_SmudgeCorrectionModes) 1)
397-
/*!< Smudge correction is applied continously accross the rangings */
397+
/*!< Smudge correction is applied continuously across the rangings */
398398
#define VL53L1_SMUDGE_CORRECTION_SINGLE ((VL53L1_SmudgeCorrectionModes) 2)
399-
/*!< Smudge correction is applied only once accross the rangings */
399+
/*!< Smudge correction is applied only once across the rangings */
400400
#define VL53L1_SMUDGE_CORRECTION_DEBUG ((VL53L1_SmudgeCorrectionModes) 3)
401-
/*!< Smudge detection is applied continously but Xtalk values are not
401+
/*!< Smudge detection is applied continuously but Xtalk values are not
402402
* updated automatically within the driver
403403
*/
404404

src/vl53l1_error_codes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ typedef int8_t VL53L1_Error;
142142
/*!< Zone dynamic config GPH ID check failed - API out of sync */
143143

144144
#define VL53L1_ERROR_XTALK_EXTRACTION_NO_SAMPLE_FAIL ((VL53L1_Error) - 22)
145-
/*!< Thrown when run_xtalk_extraction fn has 0 succesful samples
145+
/*!< Thrown when run_xtalk_extraction fn has 0 successful samples
146146
* when using the full array to sample the xtalk. In this case there is
147147
* not enough information to generate new Xtalk parm info. The function
148148
* will exit and leave the current xtalk parameters unaltered
@@ -237,7 +237,7 @@ typedef int8_t VL53L1_Error;
237237
* notification only, xtalk pulse and shape have still been generated
238238
*/
239239
#define VL53L1_WARNING_XTALK_NO_SAMPLES_FOR_GRADIENT ((VL53L1_Error) - 39)
240-
/*!< Thrown to notify that some of teh xtalk samples used for gradient
240+
/*!< Thrown to notify that some of the xtalk samples used for gradient
241241
* generation did not yield valid ranging pulse data while attempting to
242242
* measure the xtalk signal in vl53l1_run_xtalk_extract(). This can
243243
* signify that any one of the zones 0-3 yielded no successful samples.

0 commit comments

Comments
 (0)