Fixed bug with TC providing incorrect previous target execution state upon stopping target execution

This commit is contained in:
Nav
2024-08-19 19:40:29 +01:00
parent 2f6238e360
commit 12ff66aa8a

View File

@@ -632,7 +632,6 @@ namespace TargetController
void TargetControllerComponent::stopTarget() { void TargetControllerComponent::stopTarget() {
if (this->target->getExecutionState() != TargetExecutionState::STOPPED) { if (this->target->getExecutionState() != TargetExecutionState::STOPPED) {
this->target->stop(); this->target->stop();
this->targetState->executionState = TargetExecutionState::STOPPED;
} }
auto newState = *(this->targetState); auto newState = *(this->targetState);