Included a power-up delay, to fix issue with some debug tools (evaluation boards). See comments in https://github.com/navnavnav/Bloom/issues/17 for more

This commit is contained in:
Nav
2022-03-21 13:05:02 +00:00
parent 7b79f19574
commit d2dd9441fc

View File

@@ -152,6 +152,12 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
Logger::debug("Enabling target power"); Logger::debug("Enabling target power");
this->targetPowerManagementInterface->enableTargetPower(); this->targetPowerManagementInterface->enableTargetPower();
Logger::debug(
"Waiting ~" + std::to_string(this->targetConfig->targetPowerCycleDelay.count())
+ " ms for target power-up"
);
std::this_thread::sleep_for(this->targetConfig->targetPowerCycleDelay);
} }
} catch (const Exception& exception) { } catch (const Exception& exception) {