1
0
Fork 0

Stability improvement for alt.

master
David Peer 2022-01-14 13:13:49 +01:00
parent a746510f0b
commit ebb35f75aa
1 changed files with 6 additions and 2 deletions

View File

@ -165,8 +165,12 @@ function printData(key, y, c){
should_print= false;
text = "ALT";
Bangle.getPressure().then(function(data){
value = data.altitude.toFixed(0);
printRow(text, value, y, c);
if(data && data.altitude){
value = data.altitude.toFixed(0);
printRow(text, value, y, c);
} else {
printRow(text, "-", y, c);
}
})
} else if(key == "CORET"){