Split UART_MODE_NONE and UART_MODE_DEBUG

This commit is contained in:
Raphael Coeffic
2022-03-20 16:30:59 +01:00
parent f95597a7ce
commit 6b9c4fe165
18 changed files with 25 additions and 65 deletions
+3
View File
@@ -377,6 +377,9 @@ int hasSerialMode(int mode)
bool isSerialModeAvailable(uint8_t port_nr, int mode)
{
if (mode == UART_MODE_NONE)
return true;
auto p = hasSerialMode(mode);
if (p >= 0 && p != port_nr) return false;
return true;