Switch: Fix build on latest libnx

This commit is contained in:
Vicki Pfau 2021-07-09 22:22:01 -07:00
parent d202cddd1b
commit 9eefc85b64
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ static int _batteryState(void) {
} else { } else {
return BATTERY_NOT_PRESENT; return BATTERY_NOT_PRESENT;
} }
ChargerType type; PsmChargerType type;
if (R_SUCCEEDED(psmGetChargerType(&type)) && type) { if (R_SUCCEEDED(psmGetChargerType(&type)) && type) {
state |= BATTERY_CHARGING; state |= BATTERY_CHARGING;
} }