Activate target before calling Target::targetDescriptor()
This commit is contained in:
@@ -513,11 +513,12 @@ namespace TargetController
|
||||
}
|
||||
|
||||
this->target->setDebugTool(this->debugTool.get());
|
||||
this->targetDescriptor = std::make_unique<const TargetDescriptor>(this->target->targetDescriptor());
|
||||
|
||||
Logger::info("Activating target");
|
||||
this->target->activate();
|
||||
Logger::info("Target activated");
|
||||
|
||||
this->targetDescriptor = std::make_unique<const TargetDescriptor>(this->target->targetDescriptor());
|
||||
Logger::info("Target name: " + this->targetDescriptor->name);
|
||||
|
||||
this->target->postActivate();
|
||||
|
||||
@@ -85,7 +85,10 @@ namespace Targets
|
||||
virtual void postActivate() = 0;
|
||||
|
||||
/**
|
||||
* Should generate a TargetDescriptor for the current target.
|
||||
* Should generate a TargetDescriptor for the target.
|
||||
*
|
||||
* This function is called shortly after target activation, allowing for information that was obtained via
|
||||
* probing/discovery to be used in the target descriptor.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user