From 69ad50476215bd339ce5b56135262238e631ac26 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Aug 2023 17:16:06 +1000 Subject: [PATCH] AP_Periph: fixed handling of first uart for RC input --- Tools/AP_Periph/rc_in.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AP_Periph/rc_in.cpp b/Tools/AP_Periph/rc_in.cpp index f5f577adc6..83f691bda2 100644 --- a/Tools/AP_Periph/rc_in.cpp +++ b/Tools/AP_Periph/rc_in.cpp @@ -77,7 +77,7 @@ Parameters_RCIN::Parameters_RCIN(void) void AP_Periph_FW::rcin_init() { - if (g_rcin.rcin1_port == 0) { + if (g_rcin.rcin1_port < 0) { return; }