comparison 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
comparison
equal deleted inserted replaced
576:1105cf7bbf6f 577:9bb9a52d6ae5
1027 if(i==1) 1027 if(i==1)
1028 text[textpointer++] = '\001'; /* center */ 1028 text[textpointer++] = '\001'; /* center */
1029 else if(i==2) 1029 else if(i==2)
1030 text[textpointer++] = '\002'; /* right */ 1030 text[textpointer++] = '\002'; /* right */
1031 1031
1032 if(stateUsed->diveSettings.ppo2sensors_deactivated & (1<<i)) 1032 if((stateUsed->diveSettings.ppo2sensors_deactivated & (1<<i)) || (stateUsed->lifeData.ppO2Sensor_bar[i] == 0.0))
1033 { 1033 {
1034 text[textpointer++] = '\031'; 1034 text[textpointer++] = '\031';
1035 text[textpointer++] = ' '; 1035 text[textpointer++] = ' ';
1036 text[textpointer++] = '-'; 1036 text[textpointer++] = '-';
1037 text[textpointer++] = ' '; 1037 text[textpointer++] = ' ';