From 19e9fa8361d6643a9e278653db544c36ee83ecf0 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sat, 20 Jul 2024 22:17:36 +0200 Subject: [PATCH] sixths: fix issues in emulator, a bit bigger font --- apps/sixths/sixths.app.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/sixths/sixths.app.js b/apps/sixths/sixths.app.js index c5fb3b9cf..a0ea2c101 100644 --- a/apps/sixths/sixths.app.js +++ b/apps/sixths/sixths.app.js @@ -547,7 +547,9 @@ function draw() { msg = gpsHandle(); } else { let o = Bangle.getOptions(); - msg = o.seaLevelPressure.toFixed(1) + "hPa"; + let pr = o.seaLevelPressure; + if (pr) + msg = pr.toFixed(1) + "hPa"; if (note != "") { msg = note; } @@ -563,7 +565,8 @@ function draw() { //let km = 0.001 * 0.719 * Bangle.getHealthStatus("day").steps; g.setFontAlign(-1, 1); - g.setFont('Vector', 26); + // 33 still fits + g.setFont('Vector', 30); const weekday = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]; @@ -585,7 +588,10 @@ function draw() { o.seaLevelPressure = o.seaLevelPressure + a; Bangle.setOptions(o); } - msg = o.seaLevelPressure.toFixed(1) + "hPa"; + let pr = o.seaLevelPressure; + msg = "emu?"; + if (pr) + msg = pr.toFixed(1) + "hPa"; } else { msg = fmtAlt(cur_altitude); }