Added postActivate() to the target interface, for outputting any target specific info after activation.
Removed the logging of the generic target ID from the TargetController
This commit is contained in:
@@ -253,6 +253,10 @@ namespace Targets::Microchip::Avr8
|
||||
}
|
||||
}
|
||||
|
||||
void Avr8::postActivate() {
|
||||
Logger::info("AVR signature: " + this->avr8DebugInterface->getDeviceId().toHex());
|
||||
}
|
||||
|
||||
TargetDescriptor Avr8::targetDescriptor() {
|
||||
auto descriptor = TargetDescriptor{
|
||||
this->targetDescriptionFile.getName(),
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace Targets::Microchip::Avr8
|
||||
void activate() override;
|
||||
void deactivate() override;
|
||||
|
||||
void postActivate() override;
|
||||
|
||||
TargetDescriptor targetDescriptor() override;
|
||||
|
||||
void run(std::optional<TargetMemoryAddress> toAddress) override;
|
||||
|
||||
Reference in New Issue
Block a user