Merge pull request #5 from t0m1o1/compass-fix

Compass fix
pull/924/head
t0m1o1 2021-11-20 21:18:16 +00:00 committed by GitHub
commit 43c4271101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -599,7 +599,7 @@
{
"id": "compass",
"name": "Compass",
"version": "0.04",
"version": "0.05",
"description": "Simple compass that points North",
"icon": "compass.png",
"screenshots": [{"url":"screenshot_compass.png"}],

View File

@ -2,3 +2,4 @@
0.02: Show text if uncalibrated
0.03: Eliminate flickering
0.04: Fix for Bangle.js 2 and themes
0.05: Fix bearing not clearing correctly (visible in single or double digit bearings)

View File

@ -48,7 +48,7 @@ Bangle.on('mag', function(m) {
}
g.setFontAlign(0,0).setFont("6x8",3);
var y = 36;
g.clearRect(M-40,y,M+40,y+24);
g.clearRect(M-40,24,M+40,48);
g.drawString(Math.round(m.heading),M,y,true);
}