AP_SerialManager: only use the first defined serial port for RCIN
This commit is contained in:
parent
a9397911a0
commit
affbc34dec
@ -543,7 +543,11 @@ void AP_SerialManager::init()
|
|||||||
|
|
||||||
#ifndef HAL_BUILD_AP_PERIPH
|
#ifndef HAL_BUILD_AP_PERIPH
|
||||||
case SerialProtocol_RCIN:
|
case SerialProtocol_RCIN:
|
||||||
|
if (AP::RC().has_uart()) {
|
||||||
|
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Duplicate RCIN configured on SERIAL%u", i);
|
||||||
|
} else {
|
||||||
AP::RC().add_uart(uart);
|
AP::RC().add_uart(uart);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user