Add reset functionality
This commit is contained in:
parent
d06117245d
commit
e5e11549b7
1 changed files with 2 additions and 2 deletions
|
@ -395,8 +395,8 @@ auto message::parser::StateVisitor::operator()(state::CommandReset) -> State {
|
||||||
// invalidCallback("CommandVersion: Too many bytes left");
|
// invalidCallback("CommandVersion: Too many bytes left");
|
||||||
return state::Invalid{};
|
return state::Invalid{};
|
||||||
}
|
}
|
||||||
|
ESP.restart();
|
||||||
return state::Invalid{};
|
return state::Complete{};
|
||||||
}
|
}
|
||||||
|
|
||||||
auto message::parser::StateVisitor::operator()(state::Complete) -> State {
|
auto message::parser::StateVisitor::operator()(state::Complete) -> State {
|
||||||
|
|
Loading…
Reference in a new issue