Added code to ensure stable boot (#1121)

* If BUS powered, wait for capacitor to charge on boot, this ensures better boot stability

* Some cleanup
This commit is contained in:
Gunnar Skjold
2026-02-12 08:24:50 +01:00
committed by GitHub
parent 78a1cd78ea
commit cf8c48ab99
4 changed files with 91 additions and 24 deletions

View File

@@ -677,4 +677,8 @@ bool HwTools::isVoltageOptimal(float range) {
uint8_t HwTools::getBoardType() {
return boardType;
}
void HwTools::setMaxVcc(float vcc) {
this->maxVcc = min(3.3f, vcc);
}