Mercurial > public > ostc4
diff Discovery/Src/data_exchange_main.c @ 451:c2e02b87774f minor_improvments
Allocate received bar value to active gas (was static allocated to gas[1])
author | ideenmodellierer |
---|---|
date | Tue, 24 Mar 2020 21:49:52 +0100 |
parents | f1257a32f2d4 |
children | 5757edda56b7 |
line wrap: on
line diff
--- a/Discovery/Src/data_exchange_main.c Tue Mar 24 21:48:27 2020 +0100 +++ b/Discovery/Src/data_exchange_main.c Tue Mar 24 21:49:52 2020 +0100 @@ -779,9 +779,9 @@ } } #else - if(stateRealGetPointer()->lifeData.bottle_bar_age_MilliSeconds[1] < 6000) /* max age after ten minutes */ + if(stateRealGetPointer()->lifeData.bottle_bar_age_MilliSeconds[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings] < 6000) /* max age after ten minutes */ { - stateRealGetPointerWrite()->lifeData.bottle_bar_age_MilliSeconds[1]++; + stateRealGetPointerWrite()->lifeData.bottle_bar_age_MilliSeconds[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings]++; } #endif if(!DataEX_check_header_and_footer_ok())