Skip to content

Commit 08e1947

Browse files
authored
Merge pull request #2 from cparata/master
Add Continuous Integration check
2 parents fa4efe8 + f3ab5c2 commit 08e1947

File tree

4 files changed

+69
-7
lines changed

4 files changed

+69
-7
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: VL53L3CX 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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pres

src/ComponentObject.h

Lines changed: 1 addition & 1 deletion
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/vl53lx_def.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,7 +3477,7 @@ typedef int8_t VL53LX_Error;
34773477
/*!< Zone dynamic config GPH ID check failed - API out of sync */
34783478

34793479
#define VL53LX_ERROR_XTALK_EXTRACTION_NO_SAMPLE_FAIL ((VL53LX_Error) - 22)
3480-
/*!< Thrown when run_xtalk_extraction fn has 0 succesful samples
3480+
/*!< Thrown when run_xtalk_extraction fn has 0 successful samples
34813481
* when using the full array to sample the xtalk. In this case there is
34823482
* not enough information to generate new Xtalk parm info. The function
34833483
* will exit and leave the current xtalk parameters unaltered
@@ -3572,7 +3572,7 @@ typedef int8_t VL53LX_Error;
35723572
* notification only, xtalk pulse and shape have still been generated
35733573
*/
35743574
#define VL53LX_WARNING_XTALK_NO_SAMPLES_FOR_GRADIENT ((VL53LX_Error) - 39)
3575-
/*!< Thrown to notify that some of teh xtalk samples used for gradient
3575+
/*!< Thrown to notify that some of the xtalk samples used for gradient
35763576
* generation did not yield valid ranging pulse data while attempting to
35773577
* measure the xtalk signal in vl53lx_run_xtalk_extract(). This can
35783578
* signify that any one of the zones 0-3 yielded no successful samples.
@@ -7988,13 +7988,13 @@ typedef struct {
79887988
typedef uint8_t VL53LX_SmudgeCorrectionModes;
79897989

79907990
#define VL53LX_SMUDGE_CORRECTION_NONE ((VL53LX_SmudgeCorrectionModes) 0)
7991-
/*!< Smudge correction is applied continously accross the rangings */
7991+
/*!< Smudge correction is applied continuously across the rangings */
79927992
#define VL53LX_SMUDGE_CORRECTION_CONTINUOUS ((VL53LX_SmudgeCorrectionModes) 1)
7993-
/*!< Smudge correction is applied continously accross the rangings */
7993+
/*!< Smudge correction is applied continuously across the rangings */
79947994
#define VL53LX_SMUDGE_CORRECTION_SINGLE ((VL53LX_SmudgeCorrectionModes) 2)
7995-
/*!< Smudge correction is applied only once accross the rangings */
7995+
/*!< Smudge correction is applied only once across the rangings */
79967996
#define VL53LX_SMUDGE_CORRECTION_DEBUG ((VL53LX_SmudgeCorrectionModes) 3)
7997-
/*!< Smudge detection is applied continously but Xtalk values are not
7997+
/*!< Smudge detection is applied continuously but Xtalk values are not
79987998
* updated automatically within the driver
79997999
*/
80008000

0 commit comments

Comments
 (0)