From e358d1d2377909a96434feadf00355d1070f8652 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 6 Feb 2024 23:28:21 +1100 Subject: [PATCH] AP_MSP: add rcmapper config --- libraries/AP_MSP/AP_MSP_Telem_Backend.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp index e2e804d0d2..ef4a674e74 100644 --- a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp +++ b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp @@ -1051,6 +1051,7 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_rtc(sbuf_t *dst) #if AP_RC_CHANNEL_ENABLED MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_rc(sbuf_t *dst) { +#if AP_RCMAPPER_ENABLED const RCMapper* rcmap = AP::rcmap(); if (rcmap == nullptr) { return MSP_RESULT_ERROR; @@ -1074,6 +1075,9 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_rc(sbuf_t *dst) sbuf_write_data(dst, &rc, sizeof(rc)); return MSP_RESULT_ACK; +#else + return MSP_RESULT_ERROR; +#endif } #endif // AP_RC_CHANNEL_ENABLED