bthrm - Fix updating the layout on every draw

master
Martin Boonk 2024-04-14 13:04:52 +02:00
parent bc9d1ec722
commit 4059147385
1 changed files with 1 additions and 3 deletions

View File

@ -106,8 +106,6 @@ function draw(){
layout.btContact.label = "--"; layout.btContact.label = "--";
layout.btEnergy.label = "--"; layout.btEnergy.label = "--";
} }
layout.update();
layout.clear(); layout.clear();
layout.render(); layout.render();
let first = true; let first = true;
@ -128,7 +126,7 @@ global.showStatusInfo = function(txt) {
g.reset().clearRect(R.x,R.y2-8,R.x2,R.y2).setFont("6x8"); g.reset().clearRect(R.x,R.y2-8,R.x2,R.y2).setFont("6x8");
txt = g.wrapString(txt, R.w)[0]; txt = g.wrapString(txt, R.w)[0];
g.setFontAlign(0,1).drawString(txt, (R.x+R.x2)/2, R.y2); g.setFontAlign(0,1).drawString(txt, (R.x+R.x2)/2, R.y2);
} };
function onBtHrm(e) { function onBtHrm(e) {
bt = e; bt = e;