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.
It can display :
- time
- date
- altitude
@ -10,6 +9,7 @@ It can display:
- motion
- steps
"Power saving" setting control the HR and pressure (altitude) sensors.
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){
if (pos == 1) {
if(pos == 1)
g.setFont("6x8", font6x8FirstTextSize);
} else {
else
g.setFont("6x8", font6x8DefaultTextSize);
}
let yPos = Bangle.appRect.y +
paddingY * (pos - 1) +
@ -147,21 +146,19 @@
};
let drawHRM = function(pos){
if (heartRate != 0) {
if(heartRate != 0)
drawLine(">HR: " + parseInt(heartRate), pos);
} else {
else
drawLine(
">HR: " + parseInt(Math.round(Bangle.getHealthStatus().bpm||Bangle.getHealthStatus("last").bpm)),
pos);
}
};
let drawAltitude = function(pos){
if (altitude > 0) {
if(altitude > 0)
drawLine(">Alt: " + altitude.toFixed(1) + "m", pos);
} else {
else
drawLine(">Alt: unknown", pos);
}
};
let drawMotion = function(pos){