diff --git a/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp b/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp index cb2e2bfee..68297f208 100644 --- a/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp +++ b/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp @@ -42,6 +42,10 @@ namespace ams::htc::server { g_is_suspended = false; } + void FinalizePowerStateMonitor() { + R_ABORT_UNLESS(g_pm_module.Finalize()); + } + void LoopMonitorPowerState() { /* Get the psc module's event pointer. */ auto *event = g_pm_module.GetEventPointer(); diff --git a/stratosphere/htc/source/htc_main.cpp b/stratosphere/htc/source/htc_main.cpp index 893a98e5a..a3e651a12 100644 --- a/stratosphere/htc/source/htc_main.cpp +++ b/stratosphere/htc/source/htc_main.cpp @@ -222,6 +222,8 @@ namespace ams::htc { namespace server { void InitializePowerStateMonitor(htclow::impl::DriverType driver_type, htclow::HtclowManager *htclow_manager); + void FinalizePowerStateMonitor(); + void LoopMonitorPowerState(); } @@ -297,7 +299,7 @@ int main(int argc, char **argv) os::DestroyThread(std::addressof(htc_ipc_thread)); /* Finalize psc monitor. */ - //htc::server::FinalizePowerStateMonitor(); + htc::server::FinalizePowerStateMonitor(); return 0; }