Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -rf986cf8443992e5caac5fcf407ca9d8e4ecc8db6 -r9e5e0295b749e0cfb6017338fea63e6e4086e57b --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision f986cf8443992e5caac5fcf407ca9d8e4ecc8db6) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 9e5e0295b749e0cfb6017338fea63e6e4086e57b) @@ -664,17 +664,26 @@ * @param value override load cell data publish interval with (in ms) * @return TRUE if override successful, FALSE if not *************************************************************************/ -BOOL testSetLoadCellDataPublishIntervalOverride( U32 value ) +BOOL testLoadCellDataPublishIntervalOverride( TEST_OVERRIDE_PAYLOAD_T value ) { BOOL result = FALSE; if ( TRUE == isTestingActivated() ) { - U32 intvl = value / TASK_PRIORITY_INTERVAL; - result = TRUE; - loadCellDataPublishInterval.ovData = intvl; - loadCellDataPublishInterval.override = OVERRIDE_KEY; + + if ( FALSE == value.reset ) + { + U32 intvl = value.state.u32 / TASK_PRIORITY_INTERVAL; + + loadCellDataPublishInterval.ovData = intvl; + loadCellDataPublishInterval.override = OVERRIDE_KEY; + } + else + { + loadCellDataPublishInterval.override = OVERRIDE_RESET; + loadCellDataPublishInterval.ovData = loadCellDataPublishInterval.ovInitData; + } } return result; @@ -688,7 +697,7 @@ * @details Outputs: loadCellDataPublishInterval * @return TRUE if override reset successful, FALSE if not *************************************************************************/ -BOOL testResetLoadCellDataPublishIntervalOverride( void ) +/*BOOL testResetLoadCellDataPublishIntervalOverride( void ) { BOOL result = FALSE; @@ -700,7 +709,7 @@ } return result; -} +}*/ /*********************************************************************//** * @brief