Fix Build & cleanup

This commit is contained in:
Sacha Weatherstone
2021-11-28 12:43:38 +11:00
parent b6c79afc19
commit 23434b1f47
4 changed files with 4 additions and 13 deletions

View File

@@ -2,14 +2,11 @@ import React from 'react';
import { FiCheck } from 'react-icons/fi';
import { useAppDispatch } from '@app/hooks/redux';
import { IconButton } from '@components/generic/IconButton';
import { serial, setConnection } from '@core/connection';
import { connType } from '@core/slices/appSlice';
export const Serial = (): JSX.Element => {
const dispatch = useAppDispatch();
const [serialDevices, setSerialDevices] = React.useState<SerialPort[]>([]);
const updateSerialDeviceList = React.useCallback(async (): Promise<void> => {

View File

@@ -11,7 +11,6 @@ export const DeviceStatus = (): JSX.Element => {
const dispatch = useAppDispatch();
const appState = useAppSelector((state) => state.app);
const state = useAppSelector((state) => state.meshtastic);
const ready = useAppSelector((state) => state.meshtastic.ready);
return (
<Button

View File

@@ -10,11 +10,6 @@ export interface MessageWithAck {
isSender: boolean;
received: Date;
}
enum connType {
HTTP,
BLE,
SERIAL,
}
export interface ChannelData {
channel: Protobuf.Channel;

View File

@@ -140,10 +140,10 @@ export const Channels = ({
console.log(adminChannel);
// await connection.setChannel(adminChannel, (): Promise<void> => {
// setLoading(false);
// return Promise.resolve();
// });
await connection.setChannel(adminChannel, (): Promise<void> => {
setLoading(false);
return Promise.resolve();
});
});
return (