Update app.js

pull/635/head
Ben Jabituya 2021-01-13 22:27:36 +00:00 committed by GitHub
parent 6582471a6d
commit 7e2866a3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -831,8 +831,10 @@ Bangle.on('mag', function (m) {
if (isNaN(m.heading))
compass_heading = "--";
else
compass_heading = Math.round(m.heading);
compass_heading = 360 - Math.round(m.heading);
g.setColor("#000000");
g.fillRect(100, 10, 140, 20);
g.setColor(display_colour);
g.drawString(" " + (compass_heading) + " ", 130, 20, true /*clear background*/);
});