From d85cbbe7253c7fd5c641c80a527f9698c11894a7 Mon Sep 17 00:00:00 2001 From: Rohit Sangwan Date: Fri, 12 Dec 2025 16:18:32 +0530 Subject: [PATCH] Fix subscribeNotifications on Android --- .../kotlin/com/navideck/universal_ble/UniversalBlePlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/navideck/universal_ble/UniversalBlePlugin.kt b/android/src/main/kotlin/com/navideck/universal_ble/UniversalBlePlugin.kt index 6c28f4f..199ae53 100644 --- a/android/src/main/kotlin/com/navideck/universal_ble/UniversalBlePlugin.kt +++ b/android/src/main/kotlin/com/navideck/universal_ble/UniversalBlePlugin.kt @@ -381,7 +381,7 @@ class UniversalBlePlugin : UniversalBlePlatformChannel, BluetoothGattCallback(), @Suppress("DEPRECATION") if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { val status = gatt.writeDescriptor(descriptor, value) - if (gatt.writeDescriptor(descriptor, value) != BluetoothStatusCodes.SUCCESS) { + if (status != BluetoothStatusCodes.SUCCESS) { callback( Result.failure( createFlutterError(