diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-07-12 12:31:33 +0100 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-07-12 17:13:50 +0100 |
commit | 640efc352c6540db9e00f4124b9eac611cfce2fe (patch) | |
tree | e2567ae58ba7b32281621a17476ded6bc1440546 /daemon | |
parent | 3090f0f1def6140c793a415760da5cdb410ca205 (diff) |
Make sure we return a sane value even if sensor isn't warmed up
it seems that the sensor takes a while to warm up, and until it does, it will return 0.
This fixes a check that previously already existed, but was checking the wrong value - if the step offset causes step count to increase, we will be returning erroneous values.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions