Do not init Yubikey if device does not support MFI accessory
This commit is contained in:
parent
9ec7073e84
commit
cdaf60da73
1 changed files with 4 additions and 2 deletions
|
|
@ -18,8 +18,10 @@ public class YubiKeyConnection: NSObject {
|
|||
|
||||
override init() {
|
||||
super.init()
|
||||
YubiKitManager.shared.delegate = self
|
||||
YubiKitManager.shared.startAccessoryConnection()
|
||||
if YubiKitDeviceCapabilities.supportsMFIAccessoryKey {
|
||||
YubiKitManager.shared.delegate = self
|
||||
YubiKitManager.shared.startAccessoryConnection()
|
||||
}
|
||||
}
|
||||
|
||||
public func connection(cancellation: @escaping (_ error: Error) -> Void, completion: @escaping (_ connection: YKFConnectionProtocol) -> Void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue