diff --git a/src/platform/switch/main.c b/src/platform/switch/main.c index 3c8b1d999..0f3e2a891 100644 --- a/src/platform/switch/main.c +++ b/src/platform/switch/main.c @@ -312,6 +312,10 @@ static int _batteryState(void) { if (R_SUCCEEDED(psmGetBatteryChargePercentage(&charge))) { state = charge / 25; } + ChargerType type; + if (R_SUCCEEDED(psmGetChargerType(&type)) && type) { + state |= BATTERY_CHARGING; + } return state; }