Skip to content

Commit

Permalink
Minor sanity tweaks for Bangle self test
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jan 10, 2024
1 parent 08a0f7b commit 5da926f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/js/banglejs/Bangle_showTestScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(function() {
Bangle.setUI();clearInterval();clearWatch();g.clear(1);
Bangle.removeAllListeners();E.removeAllListeners();
Bangle.setBarometerPower(1, "app");
Bangle.setCompassPower(1, "app");
Bangle.setGPSPower(1, "app");
Expand Down Expand Up @@ -36,7 +37,7 @@
Bangle.setBacklight(0);
Bangle.setLocked(1); // touchscreen off
g.clear(1).setFont("12x20:2").setFontAlign(0,0).drawString("TEST\nPASS",88,88);
require('Storage').write('welcome.json', {welcomed: false});
require('Storage').writeJSON('welcome.json', {welcomed: false});
setTimeout(function() {
Bangle.softOff();
}, 60*60*1000); // 1 hour
Expand Down

0 comments on commit 5da926f

Please sign in to comment.