Revert whitespace and code style changes
parent
8b04b8766b
commit
32e53e6aea
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue