From f9494231ccabfbf5516a0adf5e0571bdf273eec9 Mon Sep 17 00:00:00 2001 From: Ben Jabituya <74158243+jabituyaben@users.noreply.github.com> Date: Mon, 18 Jan 2021 22:48:08 +0000 Subject: [PATCH] Update app.js --- apps/astral/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/astral/app.js b/apps/astral/app.js index d39c9e8ec..3870dbcca 100644 --- a/apps/astral/app.js +++ b/apps/astral/app.js @@ -828,14 +828,15 @@ setWatch(function () { //events Bangle.on('mag', function (m) { + g.setFont("6x8",2); if (isNaN(m.heading)) - compass_heading = "--"; + compass_heading = "---"; else compass_heading = 360 - Math.round(m.heading); - g.setColor("#000000"); - g.fillRect(100, 10, 140, 20); + // g.setColor("#000000"); + // g.fillRect(160, 10, 160, 20); g.setColor(display_colour); - g.drawString(" " + (compass_heading) + " ", 130, 20, true /*clear background*/); + g.drawString(compass_heading, 150, 20, true /*clear background*/); }); Bangle.on('GPS', function (g) {