Mercurial > public > ostc4
comparison Discovery/Src/t7.c @ 819:24b39a432bc2
Added debug information in case an error in the settings has been detected:
The "Check Settings" warning now provides the index of the first parameter which has been corrected as well as the number of corrections.
author | Ideenmodellierer |
---|---|
date | Sun, 24 Sep 2023 18:39:26 +0200 |
parents | dd7ce655db26 |
children | 2a9a47547b05 |
comparison
equal
deleted
inserted
replaced
818:40e951cfa443 | 819:24b39a432bc2 |
---|---|
2158 RTC_TimeTypeDef Stime; | 2158 RTC_TimeTypeDef Stime; |
2159 float fPpO2limitHigh, fPpO2limitLow, fPpO2ofGasAtThisDepth; // CVIEW_Gaslist | 2159 float fPpO2limitHigh, fPpO2limitLow, fPpO2ofGasAtThisDepth; // CVIEW_Gaslist |
2160 const SGasLine * pGasLine; // CVIEW_Gaslist | 2160 const SGasLine * pGasLine; // CVIEW_Gaslist |
2161 uint8_t oxygen, helium; // CVIEW_Gaslist | 2161 uint8_t oxygen, helium; // CVIEW_Gaslist |
2162 float depth, surface, fraction_nitrogen, fraction_helium, ead, end; // CVIEW_EADTime | 2162 float depth, surface, fraction_nitrogen, fraction_helium, ead, end; // CVIEW_EADTime |
2163 | 2163 SSettingsStatus SettingsStatus; |
2164 SSettings* pSettings; | 2164 SSettings* pSettings; |
2165 pSettings = settingsGetPointer(); | 2165 pSettings = settingsGetPointer(); |
2166 | 2166 |
2167 uint8_t local_ppo2sensors_deactivated = 0; | 2167 uint8_t local_ppo2sensors_deactivated = 0; |
2168 | 2168 |
2264 } | 2264 } |
2265 else if(isSettingsWarning()) | 2265 else if(isSettingsWarning()) |
2266 { | 2266 { |
2267 if(warning_count_high_time) | 2267 if(warning_count_high_time) |
2268 { | 2268 { |
2269 get_CorrectionStatus(&SettingsStatus); | |
2269 shiftWindowY0 += 20; | 2270 shiftWindowY0 += 20; |
2270 t7cC.WindowY0 -= shiftWindowY0; | 2271 t7cC.WindowY0 -= shiftWindowY0; |
2271 textpointer = 0; | 2272 textpointer = 0; |
2272 text[textpointer++] = '\001'; | 2273 snprintf(text,255,"\001%c%c\n\r\001%d|%d",TXT_2BYTE,TXT2BYTE_CheckSettings,SettingsStatus.FirstCorrection,SettingsStatus.Corrections); |
2273 text[textpointer++] = TXT_2BYTE; | |
2274 text[textpointer++] = TXT2BYTE_CheckSettings; | |
2275 text[textpointer++] = '\n'; | |
2276 text[textpointer++] = '\r'; | |
2277 text[textpointer++] = 0; | |
2278 GFX_write_string_color(&FontT42,&t7cC,text,1, CLUT_WarningRed); | 2274 GFX_write_string_color(&FontT42,&t7cC,text,1, CLUT_WarningRed); |
2279 t7cC.WindowY0 += shiftWindowY0; | 2275 t7cC.WindowY0 += shiftWindowY0; |
2280 } | 2276 } |
2281 t7cC.WindowNumberOfTextLines = 1; | 2277 t7cC.WindowNumberOfTextLines = 1; |
2282 } | 2278 } |