feat(radio): add the ability to trigger EM from CLI (#6640)

This commit is contained in:
3djc
2025-10-17 13:52:37 +10:00
committed by GitHub
parent a5e5cedd76
commit 3f0c54e6b5
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -1736,6 +1736,14 @@ int cliCrypt(const char ** argv)
}
#endif
int cliTriggerEM(const char** argv)
{
// Prevent task switching
vTaskSuspendAll();
// Trigger watchdog
while(1);
}
#if defined(TP_GT911)
// from tp_gt911.cpp
extern uint8_t tp_gt911_cfgVer;
@@ -1811,6 +1819,7 @@ const CliCommand cliCommands[] = {
#if defined(TP_GT911)
{ "reset_gt911", cliResetGT911, ""},
#endif
{ "trigger_watchdog_reset", cliTriggerEM, ""},
{ nullptr, nullptr, nullptr } /* sentinel */
};