boot 0.25: Fix error in 'no clock app' message

pull/756/head
Gordon Williams 2021-05-28 14:20:01 +01:00
parent 9f9ba8aac5
commit 901adb4328
3 changed files with 3 additions and 6 deletions

View File

@ -4,7 +4,7 @@
"tags": "tool,system",
"type":"bootloader",
"icon": "bootloader.png",
"version":"0.24",
"version":"0.25",
"description": "This is needed by Bangle.js to automatically load the clock, menu, widgets and settings",
"storage": [
{"name":".boot0","url":"boot0.js"},

View File

@ -23,3 +23,4 @@
0.22: Stop LCD timeout being disabled on first run (when there is no settings.json)
0.23: Move to a precalculated .boot0 file which should speed up load time
0.24: Add Bangle.setUI polyfill
0.25: Fix error in 'no clock app' message

View File

@ -14,11 +14,7 @@ if (!clockApp) {
if (clockApp)
clockApp = require("Storage").read(clockApp.src);
}
if (!clockApp) clockApp=`E.showMessage("No Clock Found");
setWatch(() => {
Bangle.showLauncher();
}, BTN2, {repeat:false,edge:"falling"});)
`;
if (!clockApp) clockApp=`E.showMessage("No Clock Found");setWatch(()=>{Bangle.showLauncher();}, BTN2, {repeat:false,edge:"falling"});`;
// check to see if our clock is wrong - if it is use GPS time
if ((new Date()).getFullYear()<2000) {
E.showMessage("Searching for\nGPS time");