ruuvi / ruuvi.firmware.c

Ruuvi Firmware version 3. Built on top of Nordic SDK 15, uses both Ruuvi and external repositories as submodules. In Beta, no breaking changes are intended but may be done if absolutely necessary
BSD 3-Clause "New" or "Revised" License
52 stars 39 forks source link

Support Sensirion SEN55 #354

Closed TheSomeMan closed 2 days ago

reviewpad[bot] commented 1 year ago

Thank you @TheSomeMan for this first contribution!

reviewpad[bot] commented 1 year ago

Reviewpad Report

:bangbang: Errors

:warning: Warnings

ojousima commented 1 year ago

Overall looks good, the SES project is probably easiest to merge with the main project file. Different projects inherit global settings and keeping separate files in sync would be a lot of effort. Ping me if it is not clear how to add the sensor to app_sensor.c

TheSomeMan commented 1 year ago

Overall looks good, the SES project is probably easiest to merge with the main project file. Different projects inherit global settings and keeping separate files in sync would be a lot of effort. Ping me if it is not clear how to add the sensor to app_sensor.c

This is what I initially tried to do, but I ran into some problems and decided to temporarily make a separate project to speed up testing. Unfortunately, after adding "embedded-i2c-sen5x" there were some conflicts.

In ruuvi.drivers.c/embedded-sht/embedded-common folder there are files:

And in the newly added ruuvi.drivers.c/embedded-i2c-sen5x folder:

In the SES solution, the preprocessor configuration is defined on the top level and it's shared between all projects. I will try to override options for the new project.

Also, files from "ruuvi.drivers.c/src/interfaces" are added to the projects by wildcards and it causes conflicts between "environmental/ruuvi_interface_shtcx.c" and "environmental/ruuvi_interface_sen55.c" because they are using different sensirion_i2c.h

ojousima commented 2 days ago

Closing as stale