From e5b1739f65f68b445f307ad260f2f3850479952d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 25 Mar 2022 23:47:20 -0700 Subject: [PATCH] fatal: yield our lbl session unless needed --- stratosphere/fatal/source/fatal_main.cpp | 1 - stratosphere/fatal/source/fatal_task_screen.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stratosphere/fatal/source/fatal_main.cpp b/stratosphere/fatal/source/fatal_main.cpp index 0e94de3b2..0bf815472 100644 --- a/stratosphere/fatal/source/fatal_main.cpp +++ b/stratosphere/fatal/source/fatal_main.cpp @@ -124,7 +124,6 @@ namespace ams { R_ABORT_UNLESS(pcvInitialize()); } - R_ABORT_UNLESS(lblInitialize()); R_ABORT_UNLESS(psmInitialize()); R_ABORT_UNLESS(spsmInitialize()); R_ABORT_UNLESS(plInitialize(::PlServiceType_User)); diff --git a/stratosphere/fatal/source/fatal_task_screen.cpp b/stratosphere/fatal/source/fatal_task_screen.cpp index 473416aa8..24abe8d64 100644 --- a/stratosphere/fatal/source/fatal_task_screen.cpp +++ b/stratosphere/fatal/source/fatal_task_screen.cpp @@ -499,7 +499,9 @@ namespace ams::fatal::srv { } void BacklightControlTask::TurnOnBacklight() { - lblSwitchBacklightOn(0); + R_ABORT_UNLESS(::lblInitialize()); + ::lblSwitchBacklightOn(0); + ::lblExit(); } Result BacklightControlTask::Run() {