diff --git a/kable-core/src/commonMain/kotlin/ObservationEvent.kt b/kable-core/src/commonMain/kotlin/ObservationEvent.kt index c6dad371e..1653d723e 100644 --- a/kable-core/src/commonMain/kotlin/ObservationEvent.kt +++ b/kable-core/src/commonMain/kotlin/ObservationEvent.kt @@ -24,9 +24,6 @@ internal fun ObservationEvent.isAssociatedWith(characteristic: Characteri // `characteristic` is null for Disconnected, which applies to all characteristics. eventCharacteristic == null -> true - eventCharacteristic is DiscoveredCharacteristic && characteristic is DiscoveredCharacteristic -> - eventCharacteristic == characteristic - else -> eventCharacteristic.characteristicUuid == characteristic.characteristicUuid && eventCharacteristic.serviceUuid == characteristic.serviceUuid