bug fix on endsDontShow
parent
6795a11a08
commit
54c31b8fb6
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue