Mercurial > public > ostc4
diff Discovery/Src/tInfoSensor.c @ 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 | f285424f04d9 |
children | c31237d20491 |
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)