AP_SerialManager: disable unused RX/TX pins on uarts

This commit is contained in:
Andrew Tridgell 2021-11-05 15:34:12 +11:00
parent 61ffe188d4
commit f91c948fd0

View File

@ -417,6 +417,9 @@ void AP_SerialManager::init()
set_options(i);
switch (state[i].protocol) {
case SerialProtocol_None:
// disable RX and TX pins in case they are shared
// with another peripheral (eg. RCIN pin)
uart->disable_rxtx();
break;
case SerialProtocol_Console:
case SerialProtocol_MAVLink: