Index: firmware/App/Controllers/Thermistors.c =================================================================== diff -u -re3705410a6e4df70c2a4f2d590e977326e11d7b3 -rd3819286869611f9c02add72a0f8e321598fdf42 --- firmware/App/Controllers/Thermistors.c (.../Thermistors.c) (revision e3705410a6e4df70c2a4f2d590e977326e11d7b3) +++ firmware/App/Controllers/Thermistors.c (.../Thermistors.c) (revision d3819286869611f9c02add72a0f8e321598fdf42) @@ -65,7 +65,6 @@ static void convertADC2Temperature( void ); static F32 calculateOnBoardThemristorTemperature( U32 adcValue, F32 betaValue ); static void publishThermistorsData( void ); -static U32 getPublishThermistorsDataInterval( void ); /*********************************************************************//** * @brief @@ -313,26 +312,6 @@ /*********************************************************************//** * @brief - * The getPublishThermistorsDataInterval function gets the thermistors - * data publish interval. - * @details Inputs: thermistorsPublishInterval - * @details Outputs: none - * @return data publish time interval in counts - *************************************************************************/ -static U32 getPublishThermistorsDataInterval( void ) -{ - U32 result = thermistorsPublishInterval.data; - - if ( OVERRIDE_KEY == thermistorsPublishInterval.override ) - { - result = thermistorsPublishInterval.ovData; - } - - return result; -} - -/*********************************************************************//** - * @brief * The publishThermistorsData function publishes the thermistors and * temperature sensors data at the specified time interval. * @details Inputs: dataPublishCounter @@ -341,7 +320,7 @@ *************************************************************************/ static void publishThermistorsData( void ) { - if ( ++dataPublishCounter > getPublishThermistorsDataInterval() ) + if ( ++dataPublishCounter > getU32OverrideValue( &thermistorsPublishInterval ) ) { THERMISTORS_DATA_T sensorsData;