rosalina shutdown/reboot: fix a few things

This commit is contained in:
TuxSH 2020-05-10 15:35:39 +01:00
parent 0b4fdc6e66
commit 0c55324d11
2 changed files with 4 additions and 2 deletions
sysmodules/rosalina/source

@ -175,7 +175,7 @@ void menuThreadMain(void)
} }
} }
static u32 menuRefCount = 0; static s32 menuRefCount = 0;
void menuEnter(void) void menuEnter(void)
{ {
Draw_Lock(); Draw_Lock();

@ -111,8 +111,9 @@ void RosalinaMenu_Reboot(void)
if(pressed & BUTTON_A) if(pressed & BUTTON_A)
{ {
APT_HardwareResetAsync();
menuLeave(); menuLeave();
APT_HardwareResetAsync();
return;
} else if(pressed & BUTTON_B) } else if(pressed & BUTTON_B)
return; return;
} }
@ -140,6 +141,7 @@ void RosalinaMenu_PowerOff(void) // Soft shutdown.
{ {
menuLeave(); menuLeave();
srvPublishToSubscriber(0x203, 0); srvPublishToSubscriber(0x203, 0);
return;
} }
else if(pressed & BUTTON_B) else if(pressed & BUTTON_B)
return; return;