comparison Discovery/Src/show_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
parents 6d8ae8fbccf5
children bad5561c0c59
comparison
equal deleted inserted replaced
984:41136649b90d 988:d9290c76b840
464 char text[40]; 464 char text[40];
465 snprintf(text, 20, "20%02i-%02i-%02i", year, month, day); 465 snprintf(text, 20, "20%02i-%02i-%02i", year, month, day);
466 466
467 Gfx_write_label_var(hgfx, 30, 250,10, &FontT42,CLUT_GasSensor1,text); 467 Gfx_write_label_var(hgfx, 30, 250,10, &FontT42,CLUT_GasSensor1,text);
468 468
469 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 469 #if defined ENABLE_GNSS_INTERN || defined ENABLE_GNSS_EXTERN
470 if((posCoord.fLat != 0.0) || (posCoord.fLon != 0.0)) 470 if((posCoord.fLat != 0.0) || (posCoord.fLon != 0.0))
471 { 471 {
472 snprintf(text, 20, "%2.4f - %2.4f", posCoord.fLat, posCoord.fLon ); 472 snprintf(text, 20, "%2.4f - %2.4f", posCoord.fLat, posCoord.fLon );
473 Gfx_write_label_var(hgfx, 300, 500,10, &FontT42,CLUT_GasSensor1,text); 473 Gfx_write_label_var(hgfx, 300, 500,10, &FontT42,CLUT_GasSensor1,text);
474 } 474 }