diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-05-31 01:00:14 +0100 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-06-01 13:31:32 +0100 |
commit | 4af2e8a736f02a9309a80ef7ab8229e4d5b163c7 (patch) | |
tree | b7888cd93479a618b1665f560ded69850154ecec /qmlplugin | |
parent | 09b5e8d4333090a898f04f5976dce6e9e83cff88 (diff) |
Move to resetting the sensor in hardware
The step counter is now set in hardware to the previous reading + any changes when the daemon starts
This means that the step counter now just records the raw step counter value, and adjusts it correctly when needed
This introduces a bug where the step counter will show bad readings if the daemon is restarted without a system reboot:
the step counter's current value will be added to the last recorded value, which will cause the number of steps to effectively double in most situations.
This might be fixed with some code to detect if a system reboot has passed since the last time the counter started.
Diffstat (limited to 'qmlplugin')
0 files changed, 0 insertions, 0 deletions