bug fix on endsDontShow

master
David Volovskiy 2025-02-23 14:05:52 -05:00
parent 6795a11a08
commit 54c31b8fb6
1 changed files with 2 additions and 2 deletions

View File

@ -313,8 +313,8 @@ Bangle.on('HRM', function(hrm) {
// putting into 1 function like this, rather than individual variables
// reduces ram usage from 70%-13%
function getGaugeImage(p, type) {
const endsDontShowList = ['Minutes', 'Seconds']; // Don't show non-5% iincrements with these ring types
var endsDontShow = !endsDontShowList.includes(type);
const endsDontShowList = ['Minutes', 'Seconds']; // Don't show non-5% increments with these ring types
var endsDontShow = endsDontShowList.includes(type);
// p0
if (p < 2 || (p < 5 && endsDontShow)) return {
width : 176, height : 176, bpp : 2,