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

3.30.3: 32-bit integer overflows before cast to 64-bit causing log read to fail? #283

Closed ojousima closed 3 years ago

ojousima commented 3 years ago

It seems firmware stops finding stored log elements after certain time has passed.

This can be accelerated by removing the divide by 32768 in rtc-implementation, so it seems that root cause is in integer overflowing millisecond->second conversion

ojousima commented 3 years ago

Fixed in #284