Corrected return type of getTargetState() in TC service class

This commit is contained in:
Nav
2024-07-25 19:04:39 +01:00
parent c9dd987643
commit c7fcb6e2e9
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ namespace Services
)->targetDescriptor; )->targetDescriptor;
} }
TargetState TargetControllerService::getTargetState() const { const TargetState& TargetControllerService::getTargetState() const {
return this->commandManager.sendCommandAndWaitForResponse( return this->commandManager.sendCommandAndWaitForResponse(
std::make_unique<GetTargetState>(), std::make_unique<GetTargetState>(),
this->defaultTimeout, this->defaultTimeout,

View File

@@ -68,7 +68,7 @@ namespace Services
* *
* @return * @return
*/ */
Targets::TargetState getTargetState() const; const Targets::TargetState& getTargetState() const;
/** /**
* Requests the TargetController to halt execution on the target. * Requests the TargetController to halt execution on the target.