From 0d112063ea18a1b6fd3f858b9eaab9d090c39df2 Mon Sep 17 00:00:00 2001 From: WrathofthePast <75559873+WrathofthePast@users.noreply.github.com> Date: Fri, 25 Feb 2022 15:22:34 -0500 Subject: Resolve kIOMasterPortDefault Deprecation (#27) * Cynosa Chroma Pro Support Seems the PR from the front didn't make the update to the DeathAdder Essential 2021, so that's included in this. * Fix for Basilisk Ultimate (Wired & Receiver) For `is_charging` & `get_battery`, the Basilisk Ultimate had the wrong transaction id. * Resolve kIOMasterPortDefault Deprecation * Update razerdevice.c --- src/lib/razerdevice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/razerdevice.c b/src/lib/razerdevice.c index e5c9553..3f0896b 100755 --- a/src/lib/razerdevice.c +++ b/src/lib/razerdevice.c @@ -239,7 +239,7 @@ IOUSBDeviceInterface **getRazerUSBDeviceInterface(int type) io_iterator_t iter; kern_return_t kReturn = - IOServiceGetMatchingServices(kIOMasterPortDefault, matchingDict, &iter); + IOServiceGetMatchingServices(MACH_PORT_NULL, matchingDict, &iter); if (kReturn != kIOReturnSuccess) { return NULL; @@ -385,7 +385,7 @@ RazerDevices getAllRazerDevices() io_iterator_t iter; kern_return_t kReturn = - IOServiceGetMatchingServices(kIOMasterPortDefault, matchingDict, &iter); + IOServiceGetMatchingServices(MACH_PORT_NULL, matchingDict, &iter); if (kReturn != kIOReturnSuccess) { return allDevices; -- cgit v1.2.3