Skip to content

Commit

Permalink
Change non-constant identifier to lowerCamelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Jun 19, 2019
1 parent 516944a commit 33e9e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/bluetooth_characteristic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/bluetooth_descriptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33e9e6b

Please sign in to comment.