comparison Discovery/Src/tInfo.c @ 1037:2af07aa38531 GasConsumption

Merge with external development branches: Some features have been prepared for integration: Profiles, DMA UART on Firmware part, Bluetooth discovery and messges logging for development phase. All these new function are deactivated by compile switch and may be activated using the configuration.h for testing purpose.
author Ideenmodellierer
date Mon, 15 Sep 2025 21:12:44 +0200
parents 5b913cdaa9dc
children
comparison
equal deleted inserted replaced
1029:e938901f6386 1037:2af07aa38531
36 //#include "tInfoDive.h" 36 //#include "tInfoDive.h"
37 //#include "tInfoSurface.h" 37 //#include "tInfoSurface.h"
38 #include "tInfoCompass.h" 38 #include "tInfoCompass.h"
39 #include "tInfoSensor.h" 39 #include "tInfoSensor.h"
40 #include "tInfoPreDive.h" 40 #include "tInfoPreDive.h"
41 #include "tInfoLogger.h"
41 #include "tMenu.h" 42 #include "tMenu.h"
42 #include "tMenuEdit.h" 43 #include "tMenuEdit.h"
43 44
44 #include <string.h> 45 #include <string.h>
45 46
225 break; 226 break;
226 case StIPREDIVE: tIscreen.FBStartAdress = getFrame(14); 227 case StIPREDIVE: tIscreen.FBStartAdress = getFrame(14);
227 infoColor = CLUT_MenuPageGasCC; 228 infoColor = CLUT_MenuPageGasCC;
228 refreshInfo_PreDive(tIscreen); 229 refreshInfo_PreDive(tIscreen);
229 break; 230 break;
231 #ifdef ENABLE_LOGGER_WINDOW
232 case StILOGGER: tIscreen.FBStartAdress = getFrame(14);
233 infoColor = CLUT_MenuPageCvOption;
234 refreshInfo_Logger(tIscreen);
235 break;
236 #endif
230 237
231 default: 238 default:
232 break; 239 break;
233 } 240 }
234 } 241 }
254 { 261 {
255 releaseFrame(14,tIscreen.FBStartAdress); 262 releaseFrame(14,tIscreen.FBStartAdress);
256 exitMenuEdit_to_BackMenu(); 263 exitMenuEdit_to_BackMenu();
257 } 264 }
258 265
266 void exitInfoSilent(void) /* no changes were done on info screen => just free buffer */
267 {
268 releaseFrame(14,tIscreen.FBStartAdress);
269 updateMenu();
270 }
259 271
260 void sendActionToInfo(uint8_t sendAction) 272 void sendActionToInfo(uint8_t sendAction)
261 { 273 {
262 if(inDebugMode()) 274 if(inDebugMode())
263 { 275 {