Revert whitespace and code style changes

master
Jim Madge 2025-02-14 17:00:07 +00:00
parent 8b04b8766b
commit 32e53e6aea
No known key found for this signature in database
GPG Key ID: 5B629C6D46746CBA
2 changed files with 48 additions and 51 deletions

View File

@ -2,7 +2,6 @@
A clock displayed as a terminal cli. A clock displayed as a terminal cli.
It can display : It can display :
- time - time
- date - date
- altitude - altitude
@ -10,6 +9,7 @@ It can display:
- motion - motion
- steps - steps
"Power saving" setting control the HR and pressure (altitude) sensors. "Power saving" setting control the HR and pressure (altitude) sensors.
If "Off" they will always be on. If "Off" they will always be on.
If "On" the sensors will be turned on every "Power on interval" minutes for 45 seconds If "On" the sensors will be turned on every "Power on interval" minutes for 45 secondes

View File

@ -101,11 +101,10 @@
-------------------------------- */ -------------------------------- */
let drawLine = function(line, pos){ let drawLine = function(line, pos){
if (pos == 1) { if(pos == 1)
g.setFont("6x8", font6x8FirstTextSize); g.setFont("6x8", font6x8FirstTextSize);
} else { else
g.setFont("6x8", font6x8DefaultTextSize); g.setFont("6x8", font6x8DefaultTextSize);
}
let yPos = Bangle.appRect.y + let yPos = Bangle.appRect.y +
paddingY * (pos - 1) + paddingY * (pos - 1) +
@ -147,21 +146,19 @@
}; };
let drawHRM = function(pos){ let drawHRM = function(pos){
if (heartRate != 0) { if(heartRate != 0)
drawLine(">HR: " + parseInt(heartRate), pos); drawLine(">HR: " + parseInt(heartRate), pos);
} else { else
drawLine( drawLine(
">HR: " + parseInt(Math.round(Bangle.getHealthStatus().bpm||Bangle.getHealthStatus("last").bpm)), ">HR: " + parseInt(Math.round(Bangle.getHealthStatus().bpm||Bangle.getHealthStatus("last").bpm)),
pos); pos);
}
}; };
let drawAltitude = function(pos){ let drawAltitude = function(pos){
if (altitude > 0) { if(altitude > 0)
drawLine(">Alt: " + altitude.toFixed(1) + "m", pos); drawLine(">Alt: " + altitude.toFixed(1) + "m", pos);
} else { else
drawLine(">Alt: unknown", pos); drawLine(">Alt: unknown", pos);
}
}; };
let drawMotion = function(pos){ let drawMotion = function(pos){