AP_SerialManager: allow for EFI serial option for non-MS protocols

This commit is contained in:
Andrew Tridgell 2021-12-19 12:36:14 +11:00
parent cff3794d25
commit 367503be91
2 changed files with 3 additions and 3 deletions

View File

@ -547,8 +547,8 @@ void AP_SerialManager::init()
break;
#endif
case SerialProtocol_EFI_MS:
state[i].baud = AP_SERIALMANAGER_EFI_MS_BAUD; // update baud param in case user looks at it
case SerialProtocol_EFI:
state[i].baud.set_default(AP_SERIALMANAGER_EFI_MS_BAUD);
uart->begin(map_baudrate(state[i].baud),
AP_SERIALMANAGER_EFI_MS_BUFSIZE_RX,
AP_SERIALMANAGER_EFI_MS_BUFSIZE_TX);

View File

@ -137,7 +137,7 @@ public:
SerialProtocol_WindVane = 21,
SerialProtocol_SLCAN = 22,
SerialProtocol_RCIN = 23,
SerialProtocol_EFI_MS = 24, // MegaSquirt EFI serial protocol
SerialProtocol_EFI = 24, // EFI serial protocol
SerialProtocol_LTM_Telem = 25,
SerialProtocol_RunCam = 26,
SerialProtocol_Hott = 27,