diff --git a/src/features/connection/connectionSlice.ts b/src/features/connection/connectionSlice.ts index f40823e4..9c6b40c2 100644 --- a/src/features/connection/connectionSlice.ts +++ b/src/features/connection/connectionSlice.ts @@ -1,6 +1,6 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import type { RequestStatus } from "@features/requests/requestReducer"; -import type {DeviceKey } from "@features/device/deviceSagas"; +import type { DeviceKey } from "@utils/connections"; export interface IConnectionState { connections: Record; diff --git a/src/features/device/deviceConnectionHandlerSagas.ts b/src/features/device/deviceConnectionHandlerSagas.ts index a27d04b9..1edc70da 100644 --- a/src/features/device/deviceConnectionHandlerSagas.ts +++ b/src/features/device/deviceConnectionHandlerSagas.ts @@ -8,12 +8,12 @@ import { connectionSliceActions } from "@features/connection/connectionSlice"; import { deviceSliceActions } from "@features/device/deviceSlice"; import { requestDisconnectFromDevice } from "@features/device/deviceActions"; import { mapSliceActions } from "@features/map/mapSlice"; -import { error } from "@utils/errors"; -import type { DeviceKey } from "@features/device/deviceSagas"; + +import type { DeviceKey } from "@utils/connections"; export type GraphGeoJSONResult = { - nodes: GeoJSON.FeatureCollection, - edges: GeoJSON.FeatureCollection + nodes: GeoJSON.FeatureCollection; + edges: GeoJSON.FeatureCollection; }; export type DeviceUpdateChannel = EventChannel; diff --git a/src/features/device/deviceSagas.ts b/src/features/device/deviceSagas.ts index 460d205c..6ab2f973 100644 --- a/src/features/device/deviceSagas.ts +++ b/src/features/device/deviceSagas.ts @@ -56,6 +56,8 @@ function* getAutoConnectPortWorker( params: { type: ConnectionType.SERIAL, portName, + dtr: true, + rts: false, }, setPrimary: true, })