Corrected bug in EDBG driver, where we weren't waiting for a stopped event when we should have been
This commit is contained in:
@@ -149,7 +149,7 @@ namespace DebugToolDrivers::Microchip::Protocols::Edbg::Avr
|
|||||||
throw Avr8CommandFailure{"AVR8 Stop target command failed", responseFrame};
|
throw Avr8CommandFailure{"AVR8 Stop target command failed", responseFrame};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->getExecutionState() == TargetExecutionState::RUNNING) {
|
if (this->cachedExecutionState != TargetExecutionState::STOPPED) {
|
||||||
this->waitForStoppedEvent();
|
this->waitForStoppedEvent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user