Merge pull request #9 from EemilAhonen/Bugfix/device-rediscovery

fix: device rediscovery issue when name changes
This commit is contained in:
OatmealDome
2025-05-22 12:21:29 -04:00
committed by GitHub

View File

@@ -95,6 +95,8 @@
- (void)deviceInquiryDeviceFound:(IOBluetoothDeviceInquiry*)sender device:(IOBluetoothDevice*)device {
// Skip unsupported devices.
if (![device.name containsString:@"Nintendo RVL-CNT-01"]) {
// Clear devices to enable rediscovery if the name changes.
[_deviceInquiry clearFoundDevices];
return;
}