Skip to content

Commit

Permalink
feat: enable BSEC driver (#10)
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
coderbyheart authored Dec 15, 2022
1 parent 5294c6f commit 310d033
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,17 @@ jobs:
if: ${{ !contains(matrix.configuration, 'wifi') }}
run: echo PGPS_OVERLAY=overlay-pgps.conf >> $GITHUB_ENV

- name: enable BSEC library to support Bosch BME680 Environmental sensor
working-directory: firmware/sdk-nrf/ext
run: |
wget -q ${{ secrets.BSEC_ARCHIVE_URL }} -O bsec.zip
unzip -q bsec.zip
ls BSEC_1.4.8.0_Generic_Release_updated_v3
echo BSEC_OVERLAY=/workdir/project/overlay-bsec.conf >> $GITHUB_ENV
- name: Build
working-directory: firmware
# -Werror=no-unused-variable below is needed for BSEC to compile
run: |
docker run --rm \
-v ${PWD}:/workdir/project \
Expand All @@ -145,8 +154,8 @@ jobs:
--build-dir /workdir/project/build \
-- \
${{ env.EXTRA_ARGS }} \
-DOVERLAY_CONFIG="${{ env.CONFIG_OVERLAY }};${{ env.PGPS_OVERLAY }};overlay-aws.conf;${{ env.MEMFAULT_OVERLAY }};/workdir/project/thingy_world.conf;/workdir/project/firmware.conf;${{ env.SHIELD_OVERLAY }}" \
-DEXTRA_CFLAGS="-Werror"
-DOVERLAY_CONFIG="${{ env.CONFIG_OVERLAY }};${{ env.PGPS_OVERLAY }};overlay-aws.conf;${{ env.MEMFAULT_OVERLAY }};/workdir/project/thingy_world.conf;/workdir/project/firmware.conf;${{ env.SHIELD_OVERLAY }};${{ env.BSEC_OVERLAY }}" \
-DEXTRA_CFLAGS="-Werror -Wno-unused-variable"
- run: cat firmware/firmware.conf
if: failure()
Expand Down
4 changes: 4 additions & 0 deletions overlay-bsec.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Disable native Zephyr driver
CONFIG_BME680=n
# Enable vendor driver
CONFIG_EXTERNAL_SENSORS_BME680_BSEC=y

0 comments on commit 310d033

Please sign in to comment.