diff options
author | uvok | 2025-07-31 19:38:12 +0200 |
---|---|---|
committer | uvok | 2025-07-31 19:38:12 +0200 |
commit | 5c03f38afbc19b9b3709dc2a866349e9ddc2e7f0 (patch) | |
tree | 49291fb05eb1f5ad7db02839b42a0f985ace5ba6 /lib/control | |
parent | b2826d8ca982dea575922c35a40897ac60248b9f (diff) |
Cleanup
Diffstat (limited to 'lib/control')
-rw-r--r-- | lib/control/flutter_blue_plus_scanner_controller.dart | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/control/flutter_blue_plus_scanner_controller.dart b/lib/control/flutter_blue_plus_scanner_controller.dart index 33dd4c3..a7f34b6 100644 --- a/lib/control/flutter_blue_plus_scanner_controller.dart +++ b/lib/control/flutter_blue_plus_scanner_controller.dart @@ -68,21 +68,4 @@ class FlutterBluePlusScannerController extends ScannerControllerImpl { stopScan().ignore(); super.dispose(); } - - final List<ScanResult> _scanResults = []; - bool _deviceInResults(ScanResult incomingDev) => _scanResults.any( - (existingDev) => existingDev.device.remoteId == incomingDev.device.remoteId, - ); - void _onScanResult(List<ScanResult> results) { - if (results.isNotEmpty) { - for (var r in results.where( - (d) => d.rssi > -90 && !_deviceInResults(d), - )) { - logger.i( - '${r.device.remoteId}: "${r.device.platformName}" / "${r.device.advName}" / "${r.advertisementData.advName}" found!', - ); - _scanResults.add(r); - } - } - } } |