comparison Discovery/Src/logbook.c @ 988:d9290c76b840 GasConsumption

OSTC4/5 joined code: In the previous version code differences between OSTC4/5 were identified using the ENABLE_GPIO_V2 compiler switch. In the new version this is done using the display version as indicator which OSTC model is in used. Since this is detected by Firmware the information is forwarded from there to the RTE. This causes a little delay in the GPIO initialization but this applies only to the cold start of the RTE which should not happen very often.
author ideenmodellierer
date Sun, 06 Apr 2025 21:02:17 +0200 (5 weeks ago)
parents 9b29995d6619
children 8c0134a287da
comparison
equal deleted inserted replaced
984:41136649b90d 988:d9290c76b840
1359 ext_flash_disable_protection_for_logbook(); 1359 ext_flash_disable_protection_for_logbook();
1360 1360
1361 ext_flash_CloseSector(); /* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */ 1361 ext_flash_CloseSector(); /* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */
1362 bDiveMode = 3; 1362 bDiveMode = 3;
1363 1363
1364 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 1364 #if defined ENABLE_GNSS_INTERN || defined ENABLE_GNSS_EXTERN
1365 pStateReal->events.gnssPositionUpdate = 1; 1365 pStateReal->events.gnssPositionUpdate = 1;
1366 1366
1367 if(pStateReal->lifeData.gnssData.alive & GNSS_ALIVE_BACKUP_POS) 1367 if(pStateReal->lifeData.gnssData.alive & GNSS_ALIVE_BACKUP_POS)
1368 { 1368 {
1369 pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord; 1369 pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord;