comparison 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
comparison
equal deleted inserted replaced
450:b2f8a39c11ea 451:c2e02b87774f
777 else 777 else
778 pStateReal->lifeData.bottle_bar_age_MilliSeconds[i] += 100; 778 pStateReal->lifeData.bottle_bar_age_MilliSeconds[i] += 100;
779 } 779 }
780 } 780 }
781 #else 781 #else
782 if(stateRealGetPointer()->lifeData.bottle_bar_age_MilliSeconds[1] < 6000) /* max age after ten minutes */ 782 if(stateRealGetPointer()->lifeData.bottle_bar_age_MilliSeconds[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings] < 6000) /* max age after ten minutes */
783 { 783 {
784 stateRealGetPointerWrite()->lifeData.bottle_bar_age_MilliSeconds[1]++; 784 stateRealGetPointerWrite()->lifeData.bottle_bar_age_MilliSeconds[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings]++;
785 } 785 }
786 #endif 786 #endif
787 if(!DataEX_check_header_and_footer_ok()) 787 if(!DataEX_check_header_and_footer_ok())
788 { 788 {
789 if(DataEX_check_header_and_footer_devicedata()) 789 if(DataEX_check_header_and_footer_devicedata())