Fix USB logging ownership, persistence, and reconnect safety
This commit is contained in:
1 parent
c1a533572a
commit
91d533bfff
32 files changed
+1543
-140
No files matched your search
@@ -858,9 +858,15 @@ TEST(SerialModeSwitch, SingleTtyLoggingCannotStealNetworkTerminal) {
|
||||
using Action = mesh::UsbLoggingTerminalAction;
|
||||
EXPECT_EQ(mesh::selectUsbLoggingTerminalAction(
|
||||
false, true, false, false, true, true),
|
||||
Action::NO_ACTION);
|
||||
Action::PARK_USB_FOR_NETWORK);
|
||||
EXPECT_EQ(mesh::selectUsbLoggingTerminalAction(
|
||||
false, true, false, false, false, true),
|
||||
Action::PARK_USB_FOR_NETWORK);
|
||||
EXPECT_EQ(mesh::selectUsbLoggingTerminalAction(
|
||||
true, true, false, false, true, true),
|
||||
Action::NO_ACTION);
|
||||
EXPECT_EQ(mesh::selectUsbLoggingTerminalAction(
|
||||
false, false, false, false, true, true),
|
||||
Action::NO_ACTION);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user