Index: firmware/App/Controllers/Fans.c =================================================================== diff -u -r922516483829939a2a387d4a2fddeccdb4c454d4 -r54e58f64179ea382d2e2c403c8c3b9a15a612636 --- firmware/App/Controllers/Fans.c (.../Fans.c) (revision 922516483829939a2a387d4a2fddeccdb4c454d4) +++ firmware/App/Controllers/Fans.c (.../Fans.c) (revision 54e58f64179ea382d2e2c403c8c3b9a15a612636) @@ -81,7 +81,6 @@ static F32 getMaximumTemperature( void ); static void convertTogglePeriod2RPM( void ); static void monitorFans( void ); -static U32 getPublishFansDataInterval( void ); static void publishFansData( void ); /*********************************************************************//** @@ -467,25 +466,6 @@ /*********************************************************************//** * @brief - * The getPublishFansDataInterval function gets the fans data publish interval. - * @details Inputs: fansPublishInterval - * @details Outputs: none - * @return data publish time interval in counts - *************************************************************************/ -static U32 getPublishFansDataInterval( void ) -{ - U32 result = fansPublishInterval.data; - - if ( OVERRIDE_KEY == fansPublishInterval.override ) - { - result = fansPublishInterval.ovData; - } - - return result; -} - -/*********************************************************************//** - * @brief * The publishFansData function publishes the fans data at the specified * time interval. * @details Inputs: dataPublishCounter @@ -494,7 +474,7 @@ *************************************************************************/ static void publishFansData( void ) { - if ( ++fansPublishCounter > getPublishFansDataInterval() ) + if ( ++fansPublishCounter > getU32OverrideValue( &fansPublishInterval ) ) { FANS_DATA_T fansData;