mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_SerialManager: disable unused RX/TX pins on uarts
This commit is contained in:
parent
61ffe188d4
commit
f91c948fd0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user