Corrected return type of getTargetState() in TC service class
This commit is contained in:
@@ -115,7 +115,7 @@ namespace Services
|
||||
)->targetDescriptor;
|
||||
}
|
||||
|
||||
TargetState TargetControllerService::getTargetState() const {
|
||||
const TargetState& TargetControllerService::getTargetState() const {
|
||||
return this->commandManager.sendCommandAndWaitForResponse(
|
||||
std::make_unique<GetTargetState>(),
|
||||
this->defaultTimeout,
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Services
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Targets::TargetState getTargetState() const;
|
||||
const Targets::TargetState& getTargetState() const;
|
||||
|
||||
/**
|
||||
* Requests the TargetController to halt execution on the target.
|
||||
|
||||
Reference in New Issue
Block a user