Index: firmware/App/Controllers/Fans.c =================================================================== diff -u -r67021fbc633259e8e1bce76749dbef7d0cb51998 -rd3819286869611f9c02add72a0f8e321598fdf42 --- firmware/App/Controllers/Fans.c (.../Fans.c) (revision 67021fbc633259e8e1bce76749dbef7d0cb51998) +++ firmware/App/Controllers/Fans.c (.../Fans.c) (revision d3819286869611f9c02add72a0f8e321598fdf42) @@ -85,7 +85,6 @@ static F32 getMaximumTemperature( void ); static void convertTogglePeriod2RPM( void ); static void monitorFans( void ); -static U32 getPublishFansDataInterval( void ); static void publishFansData( void ); /*********************************************************************//** @@ -414,25 +413,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 @@ -441,7 +421,7 @@ *************************************************************************/ static void publishFansData( void ) { - if ( ++fansPublishCounter > getPublishFansDataInterval() ) + if ( ++fansPublishCounter > getU32OverrideValue( &fansPublishInterval ) ) { FANS_DATA_T fansData;