Index: firmware/App/Modes/FPModes/FPOperationModes.c =================================================================== diff -u -r830213bc6dcc1a684610caf78c79d55f2cb41e93 -rd210786d6c7d75bb0b4d9e18efc40a01d85123fe --- firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 830213bc6dcc1a684610caf78c79d55f2cb41e93) +++ firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision d210786d6c7d75bb0b4d9e18efc40a01d85123fe) @@ -7,8 +7,8 @@ * * @file FPOperationModes.c * -* @author (last) “rkallala” -* @date (last) 09-Dec-2025 +* @author (last) Sameer Kalliadan Poyil +* @date (last) 03-Feb-2026 * * @author (original) Michael Garthwaite * @date (original) 08-Sep-2025 @@ -346,7 +346,6 @@ currentSubMode = transitionToGenPermeateDefeaturedMode(); break; - default: SET_ALARM_WITH_2_U32_DATA( ALARM_ID_FP_SOFTWARE_FAULT, FP_FAULT_ID_OP_MODES_ILLEGAL_MODE_TRANSITION_REQUESTED, newMode ) break; @@ -553,7 +552,7 @@ * @details \b Outputs: none * @param message message from Dialin which includes the signal to start or stop * generate permeate modes. - * @return TRUE if set successful, FALSE if not + * @return TRUE if override is successful, FALSE if not *************************************************************************/ BOOL testSetGeneratePermeateSignal( MESSAGE_T *message ) { @@ -578,4 +577,24 @@ return result; } +/*********************************************************************//** + * @brief + * The testGetFPDefeaturedStatus function return whether FP is defeatured or not. + * @details \b Inputs: none + * @details \b Outputs: none + * @details \b Message: \b Sent: MSG_ID_FP_DEF_STATUS_RESPONSE + * @param message request message from Dialin for FP defeatured status. + * @return TRUE if request is successful, FALSE if not + *************************************************************************/ +BOOL testGetFPDefeaturedStatus( MESSAGE_T *message ) +{ + BOOL result = FALSE; + FP_DEF_STATUS_PAYLOAD_T data; + + data.isFPDefeatured = isFPDefeatured(); + result = sendMessage( MSG_ID_FP_DEF_STATUS_RESPONSE, COMM_BUFFER_OUT_DD_CAN_PC, (U08*)&data, sizeof(FP_DEF_STATUS_PAYLOAD_T) ); + + return result; +} + /**@}*/