From 46d5771312ee69e791130a927cede4bb3c7ec6e0 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 25 Apr 2019 19:30:10 -0400 Subject: [PATCH] const for hidsysSetNotificationLedPattern input pattern. --- nx/include/switch/services/hidsys.h | 2 +- nx/source/services/hidsys.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/services/hidsys.h b/nx/include/switch/services/hidsys.h index 2bfb6536..7aa15abc 100644 --- a/nx/include/switch/services/hidsys.h +++ b/nx/include/switch/services/hidsys.h @@ -51,5 +51,5 @@ Result hidsysGetUniquePadIds(u64 *UniquePadIds, size_t count, size_t *total_entr * @param pattern \ref HidsysNotificationLedPattern * @param UniquePadId UniquePadId for the controller. */ -Result hidsysSetNotificationLedPattern(HidsysNotificationLedPattern *pattern, u64 UniquePadId); +Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *pattern, u64 UniquePadId); diff --git a/nx/source/services/hidsys.c b/nx/source/services/hidsys.c index 5e2dd0ec..f0b6c832 100644 --- a/nx/source/services/hidsys.c +++ b/nx/source/services/hidsys.c @@ -261,7 +261,7 @@ Result hidsysGetUniquePadIds(u64 *UniquePadIds, size_t count, size_t *total_entr return rc; } -Result hidsysSetNotificationLedPattern(HidsysNotificationLedPattern *pattern, u64 UniquePadId) { +Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *pattern, u64 UniquePadId) { if (hosversionBefore(7,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);