compass 0.07: Use 360-heading to output the correct heading value (fix #1866)

master
Gordon Williams 2022-06-06 15:47:24 +01:00
parent 479b53d607
commit a448c570bf
3 changed files with 4 additions and 3 deletions

View File

@ -4,3 +4,4 @@
0.04: Fix for Bangle.js 2 and themes 0.04: Fix for Bangle.js 2 and themes
0.05: Fix bearing not clearing correctly (visible in single or double digit bearings) 0.05: Fix bearing not clearing correctly (visible in single or double digit bearings)
0.06: Add button for force compass calibration 0.06: Add button for force compass calibration
0.07: Use 360-heading to output the correct heading value (fix #1866)

View File

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

View File

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