# HG changeset patch # User ideenmodellierer # Date 1585082992 -3600 # Node ID c2e02b87774fe3bea8fa3fbacf4ff809bc6fa597 # Parent b2f8a39c11eab62766cba92f839f23266fb232cf Allocate received bar value to active gas (was static allocated to gas[1]) diff -r b2f8a39c11ea -r c2e02b87774f Discovery/Src/data_exchange_main.c --- 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())