Index: firmware/App/Modes/FPModes/FPOperationModes.c =================================================================== diff -u -r2fb473f4574f9c150849bb39991a31bcadaae693 -r89c8709e3b27648926fbb20f25c9a67cbeb99adc --- firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 2fb473f4574f9c150849bb39991a31bcadaae693) +++ firmware/App/Modes/FPModes/FPOperationModes.c (.../FPOperationModes.c) (revision 89c8709e3b27648926fbb20f25c9a67cbeb99adc) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2025-2025 Diality Inc. - All Rights Reserved. +* Copyright (c) 2025-2026 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file FPOperationModes.c * * @author (last) “rkallala” -* @date (last) 09-Dec-2025 +* @date (last) 15-Jan-2026 * * @author (original) Michael Garthwaite * @date (original) 08-Sep-2025 @@ -552,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 ) { @@ -577,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; +} + /**@}*/