mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
ble: move sagas
This saga uses all ble services, not just NUS, so move it to the common ble folder.
This commit is contained in:
@@ -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();
|
||||
|
||||
+2
-2
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user