From 239d11317724dea8e2cb4f49bb4669762bc050c5 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Mon, 1 Jan 2018 11:05:22 -0600 Subject: [PATCH] Update mcu functions with changes from ctrulib --- sysmodules/rosalina/source/menu.c | 2 +- sysmodules/rosalina/source/menus/sysconfig.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysmodules/rosalina/source/menu.c b/sysmodules/rosalina/source/menu.c index ab010a4..f396460 100644 --- a/sysmodules/rosalina/source/menu.c +++ b/sysmodules/rosalina/source/menu.c @@ -196,7 +196,7 @@ static void menuDraw(Menu *menu, u32 selected) if(R_SUCCEEDED(mcuHwcInit())) { - if(R_FAILED(mcuHwcGetBatteryLevel(&batteryLevel))) + if(R_FAILED(MCUHWC_GetBatteryLevel(&batteryLevel))) batteryLevel = 255; mcuHwcExit(); } diff --git a/sysmodules/rosalina/source/menus/sysconfig.c b/sysmodules/rosalina/source/menus/sysconfig.c index 2ca1302..2a0a350 100644 --- a/sysmodules/rosalina/source/menus/sysconfig.c +++ b/sysmodules/rosalina/source/menus/sysconfig.c @@ -66,9 +66,9 @@ void SysConfigMenu_ToggleLEDs(void) { mcuHwcInit(); u8 result; - mcuHwcReadRegister(0x28, &result, 1); + MCUHWC_ReadRegister(0x28, &result, 1); result = ~result; - mcuHwcWriteRegister(0x28, &result, 1); + MCUHWC_WriteRegister(0x28, &result, 1); mcuHwcExit(); } else if(pressed & BUTTON_B)