Update app.js

pull/645/head
Ben Jabituya 2021-01-19 22:19:24 +00:00 committed by GitHub
parent 2b36291364
commit afb3c81d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -837,6 +837,8 @@ Bangle.on('mag', function (m) {
// g.setColor("#000000"); // g.setColor("#000000");
// g.fillRect(160, 10, 160, 20); // g.fillRect(160, 10, 160, 20);
g.setColor(display_colour); g.setColor(display_colour);
if(compass_heading<100)
compass_heading = " " + compass_heading;
g.drawString(compass_heading, 150, 20, true /*clear background*/); g.drawString(compass_heading, 150, 20, true /*clear background*/);
}); });