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

@@ -591,7 +591,6 @@ void AmsConfiguration::clearGpio(GpioConfig& config, bool all) {
config.tempAnalogSensorPin = 0xFF;
config.vccPin = 0xFF;
config.ledDisablePin = 0xFF;
config.powersaving = 0;
if(all) {
config.vccOffset = 0;
@@ -600,6 +599,7 @@ void AmsConfiguration::clearGpio(GpioConfig& config, bool all) {
config.vccResistorGnd = 0;
config.vccResistorVcc = 0;
config.ledBehaviour = LED_BEHAVIOUR_DEFAULT;
config.powersaving = 0;
}
}