diff --git a/nx/include/switch/services/nifm.h b/nx/include/switch/services/nifm.h index 1f190100..30a71e8f 100644 --- a/nx/include/switch/services/nifm.h +++ b/nx/include/switch/services/nifm.h @@ -229,6 +229,14 @@ Result nifmIsAnyForegroundRequestAccepted(bool* out); Result nifmPutToSleep(void); Result nifmWakeUp(void); +/** + * @brief SetWowlDelayedWakeTime + * @note Only available with ::NifmServiceType_System or ::NifmServiceType_Admin. + * @note Only available on [9.0.0+]. + * @param[in] val Input value. + */ +Result nifmSetWowlDelayedWakeTime(s32 val); + ///@name IRequest ///@{ diff --git a/nx/source/services/nifm.c b/nx/source/services/nifm.c index f40fa39d..65f37efe 100644 --- a/nx/source/services/nifm.c +++ b/nx/source/services/nifm.c @@ -319,6 +319,13 @@ Result nifmWakeUp(void) { return _nifmCmdNoIO(&g_nifmIGS, 24); } +Result nifmSetWowlDelayedWakeTime(s32 val) { + if (hosversionBefore(9,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + + return _nifmCmdInU32NoOut(&g_nifmIGS, (u32)val, 43); +} + // IRequest void nifmRequestClose(NifmRequest* r) {