htc: finish last code for Main()

This commit is contained in:
Michael Scire 2021-02-11 05:51:03 -08:00 committed by SciresM
parent 870b45f208
commit 1bd0094bee
2 changed files with 7 additions and 1 deletions

View file

@ -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();

View file

@ -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;
}