From 0e289461bb6b9a0baf3e1ff680557e531326e38f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 6 May 2020 22:34:34 -0700 Subject: [PATCH] ams: use psc acknowledge_ex on 5.1.0+ (fixes wake-from-sleep on 5.1.0) --- .../include/stratosphere/psc/sf/psc_sf_i_pm_module.hpp | 2 +- .../libstratosphere/source/psc/psc_pm_module.os.horizon.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/psc/sf/psc_sf_i_pm_module.hpp b/libraries/libstratosphere/include/stratosphere/psc/sf/psc_sf_i_pm_module.hpp index bf2e86a7a..5673bd4ab 100644 --- a/libraries/libstratosphere/include/stratosphere/psc/sf/psc_sf_i_pm_module.hpp +++ b/libraries/libstratosphere/include/stratosphere/psc/sf/psc_sf_i_pm_module.hpp @@ -43,7 +43,7 @@ namespace ams::psc::sf { MAKE_SERVICE_COMMAND_META(GetRequest), MAKE_SERVICE_COMMAND_META(Acknowledge), MAKE_SERVICE_COMMAND_META(Finalize), - MAKE_SERVICE_COMMAND_META(AcknowledgeEx, hos::Version_6_0_0), /* TODO: This is really 5.1.0... */ + MAKE_SERVICE_COMMAND_META(AcknowledgeEx, hos::Version_5_1_0), }; }; diff --git a/libraries/libstratosphere/source/psc/psc_pm_module.os.horizon.cpp b/libraries/libstratosphere/source/psc/psc_pm_module.os.horizon.cpp index 22d947a51..146e5e47a 100644 --- a/libraries/libstratosphere/source/psc/psc_pm_module.os.horizon.cpp +++ b/libraries/libstratosphere/source/psc/psc_pm_module.os.horizon.cpp @@ -60,7 +60,7 @@ namespace ams::psc { R_ABORT_UNLESS(res); R_UNLESS(this->initialized, psc::ResultNotInitialized()); - if (hos::GetVersion() >= hos::Version_6_0_0) { + if (hos::GetVersion() >= hos::Version_5_1_0) { return this->intf->AcknowledgeEx(state); } else { return this->intf->Acknowledge();