Index: firmware/App/Modes/FPModes/FPOperationModes.c =================================================================== diff -u -r3e1af7cc2576e347ab8bdf2f400196b2301def07 -r4360891b921388dcc35e7b0362c3e4e246714e36 --- firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 3e1af7cc2576e347ab8bdf2f400196b2301def07) +++ firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 4360891b921388dcc35e7b0362c3e4e246714e36) @@ -8,7 +8,7 @@ * @file FPOperationModes.c * * @author (last) Raghu Kallala -* @date (last) 31-Mar-2026 +* @date (last) 06-Apr-2026 * * @author (original) Michael Garthwaite * @date (original) 08-Sep-2025 @@ -420,11 +420,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; } @@ -434,11 +440,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; } @@ -616,6 +628,27 @@ /*********************************************************************//** * @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; +} + +/*********************************************************************//** + * @brief * The testSetFPOperationSubMode function will transition to a given * sub mode if the transition is legal. * @details \b Inputs: currentMode, currentSubMode