Skip to content

Commit

Permalink
remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
featherJ committed Feb 3, 2023
1 parent daf88bf commit 46f6791
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
.packages
.pub/

build/
pubspec.lock
build/
2 changes: 1 addition & 1 deletion lib/src/device/ble_peripheral.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class BlePeripheral extends Object {
return result;
}

List<_WriteWithResponseData> _writeWithResponseDataList = [];
final List<_WriteWithResponseData> _writeWithResponseDataList = [];

/// 向一个 characteristic 写入数据数据
Future<void> writeWithResponse(
Expand Down
1 change: 0 additions & 1 deletion lib/src/filters/service_sample_filter.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:ble_ex/ble_ex.dart';
import 'package:ble_ex/src/ble_ex.dart';

class ServiceSampleFilter {
final Uuid service;
Expand Down
2 changes: 0 additions & 2 deletions lib/src/helpers/large_requester.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class _SingleLargeRequester {
}
//验证请求号
int curRequestIndex = response[2];
print(curRequestIndex);
print(response);
if (curRequestIndex != _requestIndex) {
return;
}
Expand Down
1 change: 0 additions & 1 deletion lib/src/helpers/large_writer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class _LargerWriter {
var requestIndex = _getIndex("write");
var packageSize = _blePeripheral.packageSize;
var datas = bytes.toList();
print(datas);
int dataSize = bytes.length;
ByteData dataSizeInt = ByteData(4);
dataSizeInt.setInt32(0, dataSize);
Expand Down

0 comments on commit 46f6791

Please sign in to comment.