Mercurial > public > ostc4
diff Discovery/Src/t3.c @ 577:9bb9a52d6ae5
Handle o2 voltage values < 0.5mV as invalid:
Values < 0.5mv will now be handled as ppo2 = 0Bar to avaid problems (e.g. by negativ values) in the decompression calculation. In the custom display sensors with low voltage are show using '-'
author | Ideenmodellierer |
---|---|
date | Sun, 29 Nov 2020 22:58:11 +0100 |
parents | 5e0a75e2f00b |
children | 64bf41faab83 |
line wrap: on
line diff
--- a/Discovery/Src/t3.c Sun Nov 29 22:55:31 2020 +0100 +++ b/Discovery/Src/t3.c Sun Nov 29 22:58:11 2020 +0100 @@ -1029,7 +1029,7 @@ else if(i==2) text[textpointer++] = '\002'; /* right */ - if(stateUsed->diveSettings.ppo2sensors_deactivated & (1<<i)) + if((stateUsed->diveSettings.ppo2sensors_deactivated & (1<<i)) || (stateUsed->lifeData.ppO2Sensor_bar[i] == 0.0)) { text[textpointer++] = '\031'; text[textpointer++] = ' ';