AP_SerialManager: add warning iffrsky already configured

This commit is contained in:
Peter Barker 2024-07-31 22:55:19 +10:00 committed by Andrew Tridgell
parent 6151b84c86
commit cbdbbf436c
1 changed files with 2 additions and 0 deletions

View File

@ -541,6 +541,8 @@ void AP_SerialManager::init()
case SerialProtocol_RCIN: case SerialProtocol_RCIN:
if (!AP::RC().has_uart()) { if (!AP::RC().has_uart()) {
AP::RC().add_uart(uart); AP::RC().add_uart(uart);
} else {
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "SERIAL%u_PROTOCOL - uart already added", i);
} }
break; break;