AP_SerialManager: always set options

This commit is contained in:
Iampete1 2021-10-03 18:55:32 +01:00 committed by Andrew Tridgell
parent a9fed2f9bc
commit 2d39836b42

View File

@ -414,12 +414,7 @@ void AP_SerialManager::init()
auto *uart = hal.serial(i);
if (uart != nullptr) {
// see if special options have been requested
if (state[i].protocol != SerialProtocol_None) {
set_options(i);
}
set_options(i);
switch (state[i].protocol) {
case SerialProtocol_None:
break;