diff --git a/src/power/Power.cpp b/src/power/Power.cpp index 9a0fb82..3abf170 100644 --- a/src/power/Power.cpp +++ b/src/power/Power.cpp @@ -272,7 +272,7 @@ void Power::initPowerState(void) { PowerParameters::Battery::CELL_CHARGE_FULL_COLOUMB; percentRemaining = initialChargePercentages; // Set up flags and pins for them - pinMode(PowerParameters::PinConfig::VUSB_SENS, INPUT); + pinMode(PowerParameters::PinConfig::VUSB_SENS, INPUT_PULLUP); pinMode(PowerParameters::PinConfig::BAT_CHG_STAT, INPUT_PULLUP); busPowered = digitalRead(PowerParameters::PinConfig::VUSB_SENS); chargingState = digitalRead(PowerParameters::PinConfig::BAT_CHG_STAT);