Corrected bug in EDBG driver, where we weren't waiting for a stopped event when we should have been

This commit is contained in:
Nav
2024-10-27 00:02:00 +01:00
parent e82d59d190
commit 4160d4259a

View File

@@ -149,7 +149,7 @@ namespace DebugToolDrivers::Microchip::Protocols::Edbg::Avr
throw Avr8CommandFailure{"AVR8 Stop target command failed", responseFrame};
}
if (this->getExecutionState() == TargetExecutionState::RUNNING) {
if (this->cachedExecutionState != TargetExecutionState::STOPPED) {
this->waitForStoppedEvent();
}
}