Sensirion / embedded-sps

Embedded i2c Driver for Sensirion Particulate Matter Sensors - Download the Zip Package from the Release Page
https://github.com/Sensirion/embedded-sps/releases
BSD 3-Clause "New" or "Revised" License
45 stars 15 forks source link

Use config-independent-endianness conversion functions #43

Closed rnestler closed 4 years ago

rnestler commented 4 years ago

Check the following:

rnestler commented 4 years ago

I noticed that I missed one use of the legacy endianness conversion macros (While compiling on a RaspberryPi 1 on Rasbpian Jessy since the old gcc version they have assumes C89 per default and the macro is violating that). https://github.com/Sensirion/embedded-sps/blob/e471f1322b90827736b417d844abc029dfc64fcb/sps30-i2c/sps30.c#L86