Index: firmware/App/Modes/FPModes/FPOperationModes.c =================================================================== diff -u -rd210786d6c7d75bb0b4d9e18efc40a01d85123fe -rc9486db3b5f2dceb7eb8579c1dd6317483e8feb8 --- firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision d210786d6c7d75bb0b4d9e18efc40a01d85123fe) +++ firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision c9486db3b5f2dceb7eb8579c1dd6317483e8feb8) @@ -403,11 +403,17 @@ * @brief * The isFPDefeatured function returns if the Leahi device is defeatured. * @details \b Inputs: none - * @details \b Outputs: none + * @details \b Outputs: isDeviceDefeatured * @return TRUE if FP device is de-featured, FALSE if not. *************************************************************************/ BOOL isFPDefeatured( void ) { + // TODO decide whether we need this test config even after NVM is defined + if ( TRUE == getTestConfigStatus( TEST_CONFIG_FP_ENABLE_DEFEATURE ) ) + { + isDeviceDefeatured = TRUE; + } + // TODO - pull status from NV mem. return isDeviceDefeatured; } @@ -417,11 +423,17 @@ * The isBoostPumpInstalled function returns if the Leahi device * has a boost pump installed. * @details \b Inputs: none - * @details \b Outputs: none + * @details \b Outputs: isBoostInstalled * @return TRUE if FP device is contains a boost pump, FALSE if not. *************************************************************************/ BOOL isBoostPumpInstalled( void ) { + // TODO decide whether we need this test config even after NVM is defined + if ( TRUE == getTestConfigStatus( TEST_CONFIG_FP_ENABLE_BOOST_PUMP ) ) + { + isBoostInstalled = TRUE; + } + // TODO - pull status from NV mem. return isBoostInstalled; } @@ -597,4 +609,25 @@ return result; } +/*********************************************************************//** + * @brief + * The testGetFPBoostPumpInstallStatus function return whether FP Boost Pump + * is installed or not. + * @details \b Inputs: none + * @details \b Outputs: none + * @details \b Message: \b Sent: MSG_ID_FP_BOOST_PUMP_INSTALL_STATUS_RESPONSE + * @param message request message from Dialin for FP boost pump install status. + * @return TRUE if request is successful, FALSE if not + *************************************************************************/ +BOOL testGetFPBoostPumpInstallStatus( MESSAGE_T *message ) +{ + BOOL result = FALSE; + FP_BOOST_PUMP_INSTALL_STATUS_PAYLOAD_T data; + + data.isFPBoostPumpInstalled = isBoostPumpInstalled(); + result = sendMessage( MSG_ID_FP_BOOST_PUMP_INSTALL_STATUS_RESPONSE, COMM_BUFFER_OUT_DD_CAN_PC, (U08*)&data, sizeof(FP_BOOST_PUMP_INSTALL_STATUS_PAYLOAD_T) ); + + return result; +} + /**@}*/