Merge pull request #466 from hasmar04/cliock-patch

Stop the cliock face redrawing and running out of memory
pull/471/head
Gordon Williams 2020-06-01 07:43:56 +01:00 committed by GitHub
commit bfba5c37ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
0.07: Submitted to App Loader
0.08: Fixes issue where face would redraw on wake leading to all memory being used and watch crashing.

View File

@ -5,9 +5,6 @@ var flag = false;
var WeekDays = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
function drawAll(){
g.clear();
Bangle.loadWidgets();
Bangle.drawWidgets();
updateTime();
updateRest(new Date());
}
@ -42,6 +39,9 @@ function writeLine(str,line){
g.drawString(str,25,marginTop+line*30);
}
g.clear();
Bangle.loadWidgets();
Bangle.drawWidgets();
drawAll();
Bangle.on('lcdPower',function(on) {
if (on)