From 96ba75330e0a99a7875a42dfa327ba16851624f4 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 9 Jul 2021 22:22:01 -0700 Subject: [PATCH] Switch: Fix build on latest libnx --- src/platform/switch/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }