From 42b85c88edd1824348232a767b5943096f5e1fbc Mon Sep 17 00:00:00 2001 From: yaapu Date: Mon, 9 Nov 2020 10:33:19 +0100 Subject: [PATCH] AP_MSP: fix for multiple backends initialization --- libraries/AP_MSP/AP_MSP.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libraries/AP_MSP/AP_MSP.cpp b/libraries/AP_MSP/AP_MSP.cpp index 9c2227a5f1..23e7db8408 100644 --- a/libraries/AP_MSP/AP_MSP.cpp +++ b/libraries/AP_MSP/AP_MSP.cpp @@ -79,33 +79,29 @@ bool AP_MSP::init_backend(uint8_t backend_idx, AP_HAL::UARTDriver *uart, AP_Seri void AP_MSP::init() { const AP_SerialManager &serial_manager = AP::serialmanager(); - uint8_t backend_instance = 0; AP_HAL::UARTDriver *uart = nullptr; // DJI FPV backends for (uint8_t protocol_instance=0; protocol_instance