Closed jonseguin closed 2 months ago
La présence de force-cast provoque parfois des crashs.
Notamment, j'ai déjà eu 2-3 crashs lié à la classe Glasses, ligne 234 : peripheral.writeValue(value, for: rxCharacteristic!, type: .withResponse)
Glasses
peripheral.writeValue(value, for: rxCharacteristic!, type: .withResponse)
Pour éviter les problèmes, remplacer par :
if let rxCharacteristic = rxCharacteristic { peripheral.writeValue(value, for: rxCharacteristic, type: .withResponse) }
La présence de force-cast provoque parfois des crashs.
Notamment, j'ai déjà eu 2-3 crashs lié à la classe
Glasses
, ligne 234 :peripheral.writeValue(value, for: rxCharacteristic!, type: .withResponse)
Pour éviter les problèmes, remplacer par :