Fix Build & cleanup
This commit is contained in:
@@ -2,14 +2,11 @@ import React from 'react';
|
|||||||
|
|
||||||
import { FiCheck } from 'react-icons/fi';
|
import { FiCheck } from 'react-icons/fi';
|
||||||
|
|
||||||
import { useAppDispatch } from '@app/hooks/redux';
|
|
||||||
import { IconButton } from '@components/generic/IconButton';
|
import { IconButton } from '@components/generic/IconButton';
|
||||||
import { serial, setConnection } from '@core/connection';
|
import { serial, setConnection } from '@core/connection';
|
||||||
import { connType } from '@core/slices/appSlice';
|
import { connType } from '@core/slices/appSlice';
|
||||||
|
|
||||||
export const Serial = (): JSX.Element => {
|
export const Serial = (): JSX.Element => {
|
||||||
const dispatch = useAppDispatch();
|
|
||||||
|
|
||||||
const [serialDevices, setSerialDevices] = React.useState<SerialPort[]>([]);
|
const [serialDevices, setSerialDevices] = React.useState<SerialPort[]>([]);
|
||||||
|
|
||||||
const updateSerialDeviceList = React.useCallback(async (): Promise<void> => {
|
const updateSerialDeviceList = React.useCallback(async (): Promise<void> => {
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ export const DeviceStatus = (): JSX.Element => {
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const appState = useAppSelector((state) => state.app);
|
const appState = useAppSelector((state) => state.app);
|
||||||
const state = useAppSelector((state) => state.meshtastic);
|
const state = useAppSelector((state) => state.meshtastic);
|
||||||
const ready = useAppSelector((state) => state.meshtastic.ready);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -10,11 +10,6 @@ export interface MessageWithAck {
|
|||||||
isSender: boolean;
|
isSender: boolean;
|
||||||
received: Date;
|
received: Date;
|
||||||
}
|
}
|
||||||
enum connType {
|
|
||||||
HTTP,
|
|
||||||
BLE,
|
|
||||||
SERIAL,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ChannelData {
|
export interface ChannelData {
|
||||||
channel: Protobuf.Channel;
|
channel: Protobuf.Channel;
|
||||||
|
|||||||
@@ -140,10 +140,10 @@ export const Channels = ({
|
|||||||
|
|
||||||
console.log(adminChannel);
|
console.log(adminChannel);
|
||||||
|
|
||||||
// await connection.setChannel(adminChannel, (): Promise<void> => {
|
await connection.setChannel(adminChannel, (): Promise<void> => {
|
||||||
// setLoading(false);
|
setLoading(false);
|
||||||
// return Promise.resolve();
|
return Promise.resolve();
|
||||||
// });
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user