1
0
Fork 0

bootloader: Stop LCD timeout being disabled on first run (when there is no settings.json)

master
Gordon Williams 2020-10-28 13:26:01 +00:00
parent aedd35e7d4
commit d0082775c5
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -20,3 +20,4 @@
0.19: Tweaks to simplify code and lower memory usage 0.19: Tweaks to simplify code and lower memory usage
0.20: Allow Gadgetbridge to work even with programmable:off 0.20: Allow Gadgetbridge to work even with programmable:off
0.21: Handle echo off char from Gadgetbridge app when programmable:off (fix #558) 0.21: Handle echo off char from Gadgetbridge app when programmable:off (fix #558)
0.22: Stop LCD timeout being disabled on first run (when there is no settings.json)

View File

@ -50,7 +50,7 @@ if (!Bangle.F_BEEPSET) {
}); });
}; };
} }
Bangle.setLCDTimeout(s.timeout); if (s.timeout!==undefined) Bangle.setLCDTimeout(s.timeout);
if (!s.timeout) Bangle.setLCDPower(1); if (!s.timeout) Bangle.setLCDPower(1);
E.setTimeZone(s.timezone); E.setTimeZone(s.timezone);
delete s; delete s;