Commit d686a1b

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-03-23 00:12:37
prototype ble measurement input logic
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent 29e5008
Changed files (1)
app
lib
components
app/lib/components/ble_input/ble_input_bloc.dart
@@ -49,9 +49,7 @@ class BleInputBloc extends Bloc<BleInputEvent, BleInputState> {
         return;
       }
       emit(BleInputLoadInProgress());
-
       try {
-        emit(BleInputLoadInProgress());
         await _ble.initialize();
         final deviceStream = _ble.scanForDevices(withServices: _requiredServices,);
         await emit.forEach(deviceStream, onData: (DiscoveredDevice device) {
@@ -60,7 +58,6 @@ class BleInputBloc extends Bloc<BleInputEvent, BleInputState> {
         },);
       } catch (e) {
         // TODO: check its really this type of exception
-        print(e);
         emit(BleInputLoadFailure());
       }
     });