mirror of https://github.com/espruino/BangleApps
Widpb: correct onStep()
parent
3606267aec
commit
fa887e7e02
|
@ -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",
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue