Skip to content

Commit

Permalink
Update some deprecated names
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Feb 28, 2024
1 parent 2a5803b commit ae1f995
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macos/QMK Toolbox/USB/Bootloader/BootloaderDevice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class BootloaderDevice: USBDeviceProtocol, CustomStringConvertible {
let serialMatcher = IOServiceMatching(kIOSerialBSDServiceValue)
var serialIterator: io_iterator_t = 0

guard IOServiceGetMatchingServices(kIOMasterPortDefault, serialMatcher, &serialIterator) == KERN_SUCCESS else { return nil }
guard IOServiceGetMatchingServices(kIOMainPortDefault, serialMatcher, &serialIterator) == KERN_SUCCESS else { return nil }

repeat {
let port = IOIteratorNext(serialIterator)
Expand Down
2 changes: 1 addition & 1 deletion macos/QMK Toolbox/USB/Bootloader/LUFAMSDevice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LUFAMSDevice: BootloaderDevice {
massStorageMatcher[kIOMediaRemovableKey] = true

var massStorageIterator: io_iterator_t = 0
guard IOServiceGetMatchingServices(kIOMasterPortDefault, massStorageMatcher as CFDictionary, &massStorageIterator) == KERN_SUCCESS else { return nil }
guard IOServiceGetMatchingServices(kIOMainPortDefault, massStorageMatcher as CFDictionary, &massStorageIterator) == KERN_SUCCESS else { return nil }

repeat {
let media = IOIteratorNext(massStorageIterator)
Expand Down
2 changes: 1 addition & 1 deletion macos/QMK Toolbox/USB/USBListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class USBListener: BootloaderDeviceDelegate {
}

func start() {
notificationPort = IONotificationPortCreate(kIOMasterPortDefault)
notificationPort = IONotificationPortCreate(kIOMainPortDefault)
let runLoopSource = IONotificationPortGetRunLoopSource(notificationPort).takeUnretainedValue()
CFRunLoopAddSource(RunLoop.current.getCFRunLoop(), runLoopSource, .defaultMode)

Expand Down

0 comments on commit ae1f995

Please sign in to comment.