Corrected return type of getTargetState() in TC service class
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user