Corrected premature DWEN fuse bit management warning (regression from previous refactor)
This commit is contained in:
@@ -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 (
|
if (
|
||||||
this->targetConfig.manageOcdenFuseBit
|
this->targetConfig.manageOcdenFuseBit
|
||||||
&& this->targetConfig.physicalInterface != PhysicalInterface::JTAG
|
&& this->targetConfig.physicalInterface != PhysicalInterface::JTAG
|
||||||
@@ -143,6 +132,17 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
|||||||
if (this->avrIspInterface != nullptr) {
|
if (this->avrIspInterface != nullptr) {
|
||||||
this->avrIspInterface->configure(this->targetConfig);
|
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() {
|
void Avr8::activate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user