From f458187095e07980bb812e0bb9d2bc8604e80ad0 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Thu, 30 Mar 2023 19:53:33 +0200 Subject: [PATCH] Add reset functionality --- modules/control/Firmware/src/Messages/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/control/Firmware/src/Messages/Parser.cpp b/modules/control/Firmware/src/Messages/Parser.cpp index ab2cc09..e2bf9fb 100644 --- a/modules/control/Firmware/src/Messages/Parser.cpp +++ b/modules/control/Firmware/src/Messages/Parser.cpp @@ -395,8 +395,8 @@ auto message::parser::StateVisitor::operator()(state::CommandReset) -> State { // invalidCallback("CommandVersion: Too many bytes left"); return state::Invalid{}; } - - return state::Invalid{}; + ESP.restart(); + return state::Complete{}; } auto message::parser::StateVisitor::operator()(state::Complete) -> State {