Mercurial > public > ostc4
diff Discovery/Src/data_exchange_main.c @ 831:da632300e7d4 Evo_2_23
Activated work gas for (p)scr mode:
In previous version setting of change depth for work (travel) gases was not possible. For (p)scr operation this is not possible. Work gases will not be considered for deco calculation. In addition the first gas will be handled as "deco" gas. This allows switching back to the first gas in case the current gas becomes no longer breathable (ppo2 low).
author | Ideenmodellierer |
---|---|
date | Thu, 16 Nov 2023 20:36:35 +0100 |
parents | dd7ce655db26 |
children | 061174d88af9 |
line wrap: on
line diff
--- a/Discovery/Src/data_exchange_main.c Thu Nov 16 20:32:09 2023 +0100 +++ b/Discovery/Src/data_exchange_main.c Thu Nov 16 20:36:35 2023 +0100 @@ -1159,7 +1159,7 @@ pStateReal->sensorErrorsRTE = dataIn.sensorErrors; /* data from CO2 sensor */ - pStateReal->lifeData.CO2_data.CO2_ppm = dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_CO2)].CO2_ppm * 10; /* Scale factor depends on sensor */ + pStateReal->lifeData.CO2_data.CO2_ppm = dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_CO2)].CO2_ppm; pStateReal->lifeData.CO2_data.signalStrength = dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_CO2)].CO2_signalStrength; #ifdef ENABLE_EXTERNAL_PRESSURE