diff --git a/src/platform/switch/main.c b/src/platform/switch/main.c index 67eeb7bed..984da1ca0 100644 --- a/src/platform/switch/main.c +++ b/src/platform/switch/main.c @@ -659,7 +659,7 @@ static int _batteryState(void) { } else { return BATTERY_NOT_PRESENT; } - ChargerType type; + PsmChargerType type; if (R_SUCCEEDED(psmGetChargerType(&type)) && type) { state |= BATTERY_CHARGING; }