Corrected premature DWEN fuse bit management warning (regression from previous refactor)

This commit is contained in:
Nav
2023-05-26 23:07:17 +01:00
parent 1f90f21870
commit 264cd83048

View File

@@ -94,17 +94,6 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
);
}
if (
this->targetConfig.manageDwenFuseBit
&& this->avrIspInterface == nullptr
&& this->targetConfig.physicalInterface == PhysicalInterface::DEBUG_WIRE
) {
Logger::warning(
"The connected debug tool (or associated driver) does not provide any ISP interface. "
"Bloom will be unable to manage the DWEN fuse bit."
);
}
if (
this->targetConfig.manageOcdenFuseBit
&& this->targetConfig.physicalInterface != PhysicalInterface::JTAG
@@ -143,6 +132,17 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
if (this->avrIspInterface != nullptr) {
this->avrIspInterface->configure(this->targetConfig);
}
if (
this->targetConfig.manageDwenFuseBit
&& this->avrIspInterface == nullptr
&& this->targetConfig.physicalInterface == PhysicalInterface::DEBUG_WIRE
) {
Logger::warning(
"The connected debug tool (or associated driver) does not provide any ISP interface. "
"Bloom will be unable to manage the DWEN fuse bit."
);
}
}
void Avr8::activate() {