From 0075672b935bf0139e7208808e25db68536fed73 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 22 Jul 2020 22:31:56 -0400 Subject: [PATCH] btdrvGetLeEventInfo -> btdrvGetLeHidEventInfo --- nx/include/switch/services/bt.h | 2 +- nx/include/switch/services/btdrv.h | 4 ++-- nx/source/services/btdrv.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nx/include/switch/services/bt.h b/nx/include/switch/services/bt.h index 13d5d14b..15529a46 100644 --- a/nx/include/switch/services/bt.h +++ b/nx/include/switch/services/bt.h @@ -113,7 +113,7 @@ Result btLeSendIndication(u8 unk, bool flag, const BtdrvGattAttributeUuid *uuid0 /** * @brief GetLeEventInfo - * @note This is identical to \ref btdrvGetLeEventInfo except different state is used. + * @note This is identical to \ref btdrvGetLeHidEventInfo except different state is used. * @note The state used by this is reset after writing the data to output. * @param[in] buffer Output buffer. 0x400-bytes from state is written here. * @param[in] size Output buffer size. diff --git a/nx/include/switch/services/btdrv.h b/nx/include/switch/services/btdrv.h index 62cd188f..1a5d410c 100644 --- a/nx/include/switch/services/btdrv.h +++ b/nx/include/switch/services/btdrv.h @@ -415,14 +415,14 @@ Result btdrvRegisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id0, Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id0, const BtdrvGattId *id1); /** - * @brief GetLeEventInfo + * @brief GetLeHidEventInfo * @note Only available on [5.0.0+]. * @note The state used by this is reset after writing the data to output. * @param[out] buffer Output buffer. 0x400-bytes from state is written here. * @param[in] size Output buffer size. * @oaram[out] type Output BleEventType. */ -Result btdrvGetLeEventInfo(void* buffer, size_t size, u32 *type); +Result btdrvGetLeHidEventInfo(void* buffer, size_t size, u32 *type); /** * @brief RegisterBleHidEvent diff --git a/nx/source/services/btdrv.c b/nx/source/services/btdrv.c index 6ed0ec20..631e9231 100644 --- a/nx/source/services/btdrv.c +++ b/nx/source/services/btdrv.c @@ -379,7 +379,7 @@ Result btdrvUnregisterGattNotification(bool flag, u32 unk, const BtdrvGattId *id return _btdrvGattNotification(flag, unk, id0, id1, cmd_id); } -Result btdrvGetLeEventInfo(void* buffer, size_t size, u32 *type) { +Result btdrvGetLeHidEventInfo(void* buffer, size_t size, u32 *type) { if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); u32 cmd_id = hosversionBefore(6,0,0) ? 95 : 96;