AP_Periph: fixed handling of first uart for RC input

This commit is contained in:
Andrew Tridgell 2023-08-24 17:16:06 +10:00
parent dc8455411a
commit 69ad504762

View File

@ -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;
}