Mercurial > public > ostc4
changeset 732:e33d661d1743
Fix compiler switch:
Only computate the normalized ppo2 in case the compile switch is activated (ENABLE_EXTERNAL_PRESSURE)
author | Ideenmodellierer |
---|---|
date | Sun, 15 Jan 2023 21:45:14 +0100 |
parents | 2a801cfe23ab |
children | 7b0e020513e3 |
files | Discovery/Src/tInfoSensor.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/tInfoSensor.c Sun Jan 15 21:43:33 2023 +0100 +++ b/Discovery/Src/tInfoSensor.c Sun Jan 15 21:45:14 2023 +0100 @@ -117,8 +117,10 @@ tInfo_write_content_simple( 30, 340, ME_Y_LINE4, &FontT48, text, CLUT_Font020); snprintf(text,32,"Status: 0x%lx", pDiveO2Data->status); tInfo_write_content_simple( 30, 340, ME_Y_LINE5, &FontT48, text, CLUT_Font020); +#ifdef ENABLE_EXTERNAL_PRESSURE snprintf(text,32,"Norm ppO2: %02.3f (%02.1f)", (float)(stateRealGetPointer()->lifeData.ppO2Sensor_bar[0] / (pressure / 1000.0)),(float)(stateRealGetPointer()->lifeData.ppO2Sensor_bar[0])); tInfo_write_content_simple( 30, 340, ME_Y_LINE6, &FontT48, text, CLUT_Font020); +#endif } void sendActionToInfoSensor(uint8_t sendAction)