verticalface 0.09: Fix time when minutes<10 and hours>9 (fix #767)
parent
0688d79d3f
commit
a4358600a0
|
|
@ -2172,7 +2172,7 @@
|
||||||
"name": "Vertical watch face",
|
"name": "Vertical watch face",
|
||||||
"shortName":"Vertical Face",
|
"shortName":"Vertical Face",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.08",
|
"version":"0.09",
|
||||||
"description": "A simple vertical watch face with the date. Heart rate monitor is toggled with BTN1",
|
"description": "A simple vertical watch face with the date. Heart rate monitor is toggled with BTN1",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"type":"clock",
|
"type":"clock",
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,4 @@
|
||||||
0.06: Tweak sizing to allow widgets at top, and add widgets (fix #567)
|
0.06: Tweak sizing to allow widgets at top, and add widgets (fix #567)
|
||||||
0.07: Added leading zero to hours and minutes
|
0.07: Added leading zero to hours and minutes
|
||||||
0.08: Show step count by calling wpedom.getSteps() or activepedom.getSteps()
|
0.08: Show step count by calling wpedom.getSteps() or activepedom.getSteps()
|
||||||
|
0.09: Fix time when minutes<10 and hours>9 (fix #767)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ function drawTimeDate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m < 10) {
|
if (m < 10) {
|
||||||
m = "0" + h;
|
m = "0" + m;
|
||||||
}
|
}
|
||||||
|
|
||||||
var daysOfWeek = ["SUN", "MON", "TUE","WED","THU","FRI","SAT"];
|
var daysOfWeek = ["SUN", "MON", "TUE","WED","THU","FRI","SAT"];
|
||||||
|
|
@ -128,17 +128,10 @@ Bangle.on('lcdPower',on=>{
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Show launcher when middle button pressed
|
// Show launcher when button pressed
|
||||||
setWatch(Bangle.showLauncher, BTN2, { repeat: false, edge: "falling" });
|
Bangle.setUI("clockupdown", btn=>{
|
||||||
|
if (btn!=0) return;
|
||||||
Bangle.on('touch', function(button) {
|
|
||||||
if(button == 1 || button == 2){
|
|
||||||
Bangle.showLauncher();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//HRM Controller.
|
//HRM Controller.
|
||||||
setWatch(function(){
|
|
||||||
if(!HRMstate){
|
if(!HRMstate){
|
||||||
//console.log("Toggled HRM");
|
//console.log("Toggled HRM");
|
||||||
//Turn on.
|
//Turn on.
|
||||||
|
|
@ -155,7 +148,13 @@ setWatch(function(){
|
||||||
currentHRM = [];
|
currentHRM = [];
|
||||||
}
|
}
|
||||||
drawBPM(HRMstate);
|
drawBPM(HRMstate);
|
||||||
}, BTN1, { repeat: true, edge: "falling" });
|
});
|
||||||
|
|
||||||
|
Bangle.on('touch', function(button) {
|
||||||
|
if(button == 1 || button == 2){
|
||||||
|
Bangle.showLauncher();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Bangle.on('HRM', function(hrm) {
|
Bangle.on('HRM', function(hrm) {
|
||||||
if(hrm.confidence > 90){
|
if(hrm.confidence > 90){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue