aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorWrathofthePast <[email protected]>2022-02-25 15:22:34 -0500
committerGitHub <[email protected]>2022-02-25 20:22:34 +0000
commit0d112063ea18a1b6fd3f858b9eaab9d090c39df2 (patch)
tree03b68974f3394266208cb6533fd7b5c65756528c /src/lib
parent945fbbe433fbb8f3b4c11b1eedbb63905a58a22c (diff)
downloadlibrazermacos-0d112063ea18a1b6fd3f858b9eaab9d090c39df2.tar.xz
librazermacos-0d112063ea18a1b6fd3f858b9eaab9d090c39df2.zip
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
Diffstat (limited to 'src/lib')
-rwxr-xr-xsrc/lib/razerdevice.c4
1 files changed, 2 insertions, 2 deletions
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;