ams: use psc acknowledge_ex on 5.1.0+ (fixes wake-from-sleep on 5.1.0)

This commit is contained in:
Michael Scire 2020-05-06 22:34:34 -07:00
parent 8e75a4169d
commit 0e289461bb
2 changed files with 2 additions and 2 deletions

View file

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

View file

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