Full init when switching to any other mode than idle

This commit is contained in:
Jan Käberich 2020-11-25 15:42:24 +01:00
parent 641f4ccd98
commit 978842a2ff
3 changed files with 2 additions and 4 deletions

View file

@ -192,7 +192,7 @@ void HW::SetMode(Mode mode) {
default:
break;
}
if(mode != Mode::Idle && activeMode != Mode::Idle) {
if(mode != Mode::Idle) {
// do a full initialization when switching directly between modes
HW::Init();
}