Widpb: correct onStep()

pull/1300/head
hughbarney 2022-01-14 22:24:19 +00:00
parent 3606267aec
commit fa887e7e02
3 changed files with 3 additions and 2 deletions

View File

@ -5635,7 +5635,7 @@
"shortName":"Lato Pedometer",
"icon": "screenshot_widpb.png",
"screenshots": [{"url":"screenshot_widpb.png"}],
"version":"0.02",
"version":"0.03",
"type": "widget",
"supports": ["BANGLEJS", "BANGLEJS2"],
"readme": "README.md",

View File

@ -1,2 +1,3 @@
0.01: First release
0.02: Fixed widget id to wibpb, Size widget after step count is reset
0.03: Fixed widget id in onStep() come on get it right!

View File

@ -1,5 +1,5 @@
// on.step version
Bangle.on('step', function(s) { WIDGETS["bata"].draw(); });
Bangle.on('step', function(s) { WIDGETS["widpb"].draw(); });
Bangle.on('lcdPower', function(on) {
if (on) WIDGETS["widpb"].draw();
});