diff --git a/src/ble-uart/sagas.ts b/src/ble/sagas.ts similarity index 99% rename from src/ble-uart/sagas.ts rename to src/ble/sagas.ts index e8ff3741..5ba1db13 100644 --- a/src/ble-uart/sagas.ts +++ b/src/ble/sagas.ts @@ -37,6 +37,20 @@ import { ControlCharacteristicUUID as pybricksCommandCharacteristicUUID, ServiceUUID as pybricksServiceUUID, } from '../ble-pybricks-service/protocol'; +import { + BleUartActionType, + BleUartWriteAction, + didFailToWrite as didFailToWriteUart, + didNotify as didNotifyUart, + didWrite as didWriteUart, +} from '../ble-uart/actions'; +import { + RxCharUUID as uartRxCharUUID, + ServiceUUID as uartServiceUUID, + TxCharUUID as uartTxCharUUID, +} from '../ble-uart/protocol'; +import { RootState } from '../reducers'; +import { ensureError } from '../utils'; import { BLEActionType, BleDeviceActionType as BLEDeviceActionType, @@ -49,22 +63,8 @@ import { didDisconnect, didFailToConnect, disconnect as disconnectAction, -} from '../ble/actions'; -import { BleConnectionState } from '../ble/reducers'; -import { RootState } from '../reducers'; -import { ensureError } from '../utils'; -import { - BleUartActionType, - BleUartWriteAction, - didFailToWrite as didFailToWriteUart, - didNotify as didNotifyUart, - didWrite as didWriteUart, } from './actions'; -import { - RxCharUUID as uartRxCharUUID, - ServiceUUID as uartServiceUUID, - TxCharUUID as uartTxCharUUID, -} from './protocol'; +import { BleConnectionState } from './reducers'; const decoder = new TextDecoder(); diff --git a/src/sagas.ts b/src/sagas.ts index 2ccf8d5b..412c14d6 100644 --- a/src/sagas.ts +++ b/src/sagas.ts @@ -5,7 +5,7 @@ import { all, put } from 'typed-redux-saga/macro'; import { didStart } from './app/actions'; import app from './app/sagas'; import blePybricksService from './ble-pybricks-service/sagas'; -import bleUart from './ble-uart/sagas'; +import ble from './ble/sagas'; import editor from './editor/sagas'; import errorLog from './error-log/sagas'; import flashFirmware from './firmware/sagas'; @@ -23,7 +23,7 @@ export default function* (): Generator { yield* all([ app(), blePybricksService(), - bleUart(), + ble(), lwp3BootloaderBle(), lwp3BootloaderProtocol(), editor(),