feat: add 'unplug USB' message to CLI trigger_watchdog_reset (#6888)

This commit is contained in:
3djc
2025-12-19 21:56:34 +10:00
committed by GitHub
parent d0bff67a04
commit 2fc9171ed9
+3
View File
@@ -1738,6 +1738,9 @@ int cliCrypt(const char ** argv)
int cliTriggerEM(const char** argv)
{
// Wait USB unplug since that could interfere
cliSerialPrint("Please unplug USB");
while (usbPlugged()) {}
// Prevent task switching
vTaskSuspendAll();
// Trigger watchdog