From 56b5074a1f40c38abea297464eb89a8bc5fed61e 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 f5f577adc6e44..83f691bda2816 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; }