Skip to content

Commit

Permalink
Show invalid pairing on encryption time out
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfreeman committed Nov 19, 2022
1 parent b5698e5 commit bb7701b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class FlipperPeripheral: NSObject, BluetoothPeripheral {
private func _onError(_ error: CBError) {
switch error.code {
case .peerRemovedPairingInformation: state = .invalidPairing
case .encryptionTimedOut: state = .disconnected
case .encryptionTimedOut: state = .invalidPairing
default: logger.error("unknown error type: \(error)")
}
}
Expand Down

0 comments on commit bb7701b

Please sign in to comment.