drained: add more options to menu for escaping
parent
cb2593337d
commit
6fd81fd36a
|
|
@ -2,3 +2,4 @@
|
|||
0.02: Allow boot exceptions, e.g. to load DST
|
||||
0.03: Permit exceptions to load in low-power mode, e.g. daylight saving time.
|
||||
Also avoid polluting global scope.
|
||||
0.04: Enhance menu: enable bluetooth, visit settings & visit recovery
|
||||
|
|
|
|||
|
|
@ -61,14 +61,13 @@ var reload = function () {
|
|||
nextDraw = undefined;
|
||||
},
|
||||
btn: function () {
|
||||
E.showPrompt("Restore watch to full power?").then(function (v) {
|
||||
if (v) {
|
||||
drainedRestore();
|
||||
}
|
||||
else {
|
||||
reload();
|
||||
}
|
||||
});
|
||||
var menu = {
|
||||
"Restore to full power": drainedRestore,
|
||||
"Enable BLE": function () { return NRF.wake(); },
|
||||
"Settings": function () { return load("setting.app.js"); },
|
||||
"Recovery": function () { return Bangle.showRecoveryMenu(); },
|
||||
};
|
||||
E.showMenu(menu);
|
||||
}
|
||||
});
|
||||
Bangle.CLOCK = 1;
|
||||
|
|
|
|||
|
|
@ -79,13 +79,13 @@ const reload = () => {
|
|||
nextDraw = undefined;
|
||||
},
|
||||
btn: () => {
|
||||
E.showPrompt("Restore watch to full power?").then(v => {
|
||||
if(v){
|
||||
drainedRestore();
|
||||
}else{
|
||||
reload();
|
||||
}
|
||||
})
|
||||
const menu = {
|
||||
"Restore to full power": drainedRestore,
|
||||
"Enable BLE": () => NRF.wake(),
|
||||
"Settings": () => load("setting.app.js"),
|
||||
"Recovery": () => Bangle.showRecoveryMenu(),
|
||||
};
|
||||
E.showMenu(menu);
|
||||
}
|
||||
});
|
||||
Bangle.CLOCK=1;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "drained",
|
||||
"name": "Drained",
|
||||
"version": "0.03",
|
||||
"version": "0.04",
|
||||
"description": "Switches to displaying a simple clock when the battery percentage is low, and disables some peripherals",
|
||||
"readme": "README.md",
|
||||
"icon": "icon.png",
|
||||
|
|
|
|||
Loading…
Reference in New Issue