Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -re6f3a632890f96a5aa282922d11df148bdd06587 -rd3819286869611f9c02add72a0f8e321598fdf42 --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision e6f3a632890f96a5aa282922d11df148bdd06587) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision d3819286869611f9c02add72a0f8e321598fdf42) @@ -78,7 +78,6 @@ // ********** private function prototypes ********** -static U32 getLoadCellDataPublishInterval( void ); static BOOL processCalibrationData( void ); /*********************************************************************//** @@ -231,7 +230,7 @@ } // broadcast load cell data if we are at scheduled interval. - if ( ++loadCellDataPublicationTimerCounter >= getLoadCellDataPublishInterval() ) + if ( ++loadCellDataPublicationTimerCounter >= getU32OverrideValue( &loadCellDataPublishInterval ) ) { LOAD_CELL_DATA_T loadCellData; @@ -436,25 +435,6 @@ /*********************************************************************//** * @brief - * The getLoadCellDataPublishInterval function gets the load cell data publish interval. - * @details Inputs: loadCellDataPublishInterval - * @details Outputs: none - * @return the current load cell data publication interval (in ms/task interval). - *************************************************************************/ -static U32 getLoadCellDataPublishInterval( void ) -{ - U32 result = loadCellDataPublishInterval.data; - - if ( OVERRIDE_KEY == loadCellDataPublishInterval.override ) - { - result = loadCellDataPublishInterval.ovData; - } - - return result; -} - -/*********************************************************************//** - * @brief * The processCalibrationData function gets the calibration data and makes * sure it is valid by checking the calibration date. The calibration date * should not be 0.