fix issue with pedometer reset

pull/103/head
Gordon Williams 2020-02-13 09:28:14 +00:00
parent 07863bfe5d
commit 0ff6057971
3 changed files with 3 additions and 2 deletions

View File

@ -735,7 +735,7 @@
{ "id": "wpedom",
"name": "Pedometer widget",
"icon": "pedometer_widget.png",
"version":"0.02",
"version":"0.04",
"description": "Daily pedometer widget",
"tags": "widget",
"type":"widget",

View File

@ -1,2 +1,3 @@
0.02: Save number of steps when unloading from memory
0.03: Don't turn the screen on for every step!
0.04: Fix pedometer reload when going back to clock app

View File

@ -49,7 +49,7 @@
// When unloading, save state
E.on('kill', () => {
let d = {
lastUpdate : lastUpdate.toString(),
lastUpdate : lastUpdate.toISOString(),
stepsToday : stp_today
};
require("Storage").write(PEDOMFILE,d);