From 2a9f5d7d3d7c63b9f572c93cbefc0d3595c5476d Mon Sep 17 00:00:00 2001 From: Tilak Puli Date: Mon, 3 Apr 2023 13:43:36 +0530 Subject: [PATCH] feat(#695): remove ble error handling form nearby scan machine --- machines/scan.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/machines/scan.ts b/machines/scan.ts index e569fa4a2c..577a3b21e1 100644 --- a/machines/scan.ts +++ b/machines/scan.ts @@ -435,14 +435,6 @@ export const scanMachine = }, }, - handlingBleError: { - on: { - DISMISS: { - target: '#request.clearingConnection', - }, - }, - }, - invalid: { on: { DISMISS: { @@ -759,11 +751,6 @@ export const scanMachine = if (event.type === 'onDisconnected') { callback({ type: 'DISCONNECT' }); } - - if (event.type === 'onError') { - callback({ type: 'BLE_ERROR' }); - console.error('BLE Exception: ' + event.message); - } } );