From e6b5d792b72c3c6f7c758529176408870d3b0e0f Mon Sep 17 00:00:00 2001 From: Markus Uhr Date: Mon, 13 Nov 2017 22:23:38 +0100 Subject: [PATCH] Reset command: also reset controller state. --- src/debugger/DebuggerParser.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/debugger/DebuggerParser.cxx b/src/debugger/DebuggerParser.cxx index d914a6c24..5a8990933 100644 --- a/src/debugger/DebuggerParser.cxx +++ b/src/debugger/DebuggerParser.cxx @@ -1500,6 +1500,16 @@ void DebuggerParser::executeReset() { debugger.reset(); debugger.rom().invalidate(); + debugger.riotDebug().controller(Controller::Left).set(Controller::One, true); + debugger.riotDebug().controller(Controller::Left).set(Controller::Two, true); + debugger.riotDebug().controller(Controller::Left).set(Controller::Three, true); + debugger.riotDebug().controller(Controller::Left).set(Controller::Four, true); + debugger.riotDebug().controller(Controller::Left).set(Controller::Six, true); + debugger.riotDebug().controller(Controller::Right).set(Controller::One, true); + debugger.riotDebug().controller(Controller::Right).set(Controller::Two, true); + debugger.riotDebug().controller(Controller::Right).set(Controller::Three, true); + debugger.riotDebug().controller(Controller::Right).set(Controller::Four, true); + debugger.riotDebug().controller(Controller::Right).set(Controller::Six, true); commandResult << "reset system"; }