MBjoern / arduino-ble-sensiscan

Library to get live values from Sensirion Gadgets using BLE on ESP32.
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Fix invalid return type for sample decoder #4

Closed psachs closed 1 year ago

psachs commented 1 year ago

struct SampleEncoding has type unit and therefore can't return -1 for minFrameSize. Having a default of 0 for min frame size therefore makes more sense. In case of unknown frames it will not decode any samples instead of failing to decode.