1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-10-06 13:20:30 +02:00
Gadgetbridge/app
Daniele Gobbetti f2f6536ea8 Garmin: fix major issue with field encoding/decoding
Our implementation of scale and offset was backwards: we were adding offset and then dividing by scale when decoding fields, but the publicly available protocol description dictates otherwise ( http://web.archive.org/web/20240519102659/https://developer.garmin.com/fit/protocol/#scaleoffset ):  "the binary quantity is divided by the scale factor and then the offset is subtracted".
For this reason the sign of GARMIN_TIME_EPOCH in Timestamp field definition must be flipped as well.
2024-08-16 13:57:00 +02:00
..
src Garmin: fix major issue with field encoding/decoding 2024-08-16 13:57:00 +02:00
build.gradle Update commons-lang3 to 3.16.0 2024-08-10 12:16:36 +01:00
lint-baseline.xml Update linter baseline 2024-02-19 12:14:36 +01:00
proguard-rules.pro Update gson to 2.11.0, simplify android-emojify 2024-07-04 22:41:22 +01:00