From 33e9e6b53d274fa469bdfc0aa47a617bf0550487 Mon Sep 17 00:00:00 2001 From: Paul DeMarco Date: Wed, 19 Jun 2019 12:44:29 -0400 Subject: [PATCH] Change non-constant identifier to lowerCamelCase --- lib/src/bluetooth_characteristic.dart | 2 +- lib/src/bluetooth_descriptor.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/bluetooth_characteristic.dart b/lib/src/bluetooth_characteristic.dart index 24138981..c06be97f 100644 --- a/lib/src/bluetooth_characteristic.dart +++ b/lib/src/bluetooth_characteristic.dart @@ -14,7 +14,7 @@ class BluetoothCharacteristic { bool get isNotifying { try { var cccd = - descriptors.singleWhere((d) => d.uuid == BluetoothDescriptor.CCCD); + descriptors.singleWhere((d) => d.uuid == BluetoothDescriptor.cccd); return ((cccd.lastValue[0] & 0x01) > 0 || (cccd.lastValue[0] & 0x02) > 0); } catch (e) { return false; diff --git a/lib/src/bluetooth_descriptor.dart b/lib/src/bluetooth_descriptor.dart index 0f7864f1..8c06ac3d 100644 --- a/lib/src/bluetooth_descriptor.dart +++ b/lib/src/bluetooth_descriptor.dart @@ -5,7 +5,7 @@ part of flutter_blue; class BluetoothDescriptor { - static final Guid CCCD = new Guid("00002902-0000-1000-8000-00805f9b34fb"); + static final Guid cccd = new Guid("00002902-0000-1000-8000-00805f9b34fb"); final Guid uuid; final DeviceIdentifier deviceId;