diff --git a/nx/include/switch/services/hidsys.h b/nx/include/switch/services/hidsys.h index 51d0e445..280aa3cb 100644 --- a/nx/include/switch/services/hidsys.h +++ b/nx/include/switch/services/hidsys.h @@ -73,7 +73,7 @@ Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *patte /** * @brief Gets the unique pad's serial number. - * @param pad_id Id of the unique pad. + * @param UniquePadId UniquePadId for the controller. * @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x19 bytes) */ -Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial); \ No newline at end of file +Result hidsysGetUniquePadSerialNumber(u64 UniquePadId, char *serial); diff --git a/nx/source/services/hidsys.c b/nx/source/services/hidsys.c index ec6acad0..b6a9f6c4 100644 --- a/nx/source/services/hidsys.c +++ b/nx/source/services/hidsys.c @@ -300,7 +300,7 @@ Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *patte return rc; } -Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial) { +Result hidsysGetUniquePadSerialNumber(u64 UniquePadId, char *serial) { if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); @@ -319,7 +319,7 @@ Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial) { raw->magic = SFCI_MAGIC; raw->cmd_id = 809; - raw->pad_id = pad_id; + raw->pad_id = UniquePadId; Result rc = serviceIpcDispatch(&g_hidsysSrv); @@ -342,4 +342,4 @@ Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial) { } return rc; -} \ No newline at end of file +}