Skip to content

A truly modular keyboard

C

keyword: RESET command, a plain restart (brings CPU2 up after a DFU flash jumped into the app)

Nathan098e79dee8da
diff --git a/firmware/keyword/Core/Src/proto.c b/firmware/keyword/Core/Src/proto.c
index 03d6e6b..5f978c7 100644
--- a/firmware/keyword/Core/Src/proto.c
+++ b/firmware/keyword/Core/Src/proto.c
@@ -210,6 +210,13 @@ static void Handle_Line(proto_port_t *port, char *cmd)
if (why) Reply(port, "ERR %s", why);
else Reply(port, "OK STACK INSTALL");
}
+ else if (strcmp(cmd, "RESET") == 0)
+ {
+ /* A plain restart, e.g. to bring CPU2 up after a DFU flash jumped
+ * straight into the app. */
+ Reply(port, "OK RESET");
+ OTA_ResetSoon();
+ }
else if (strcmp(cmd, "STACK?") == 0)
{
char info[48];