diff --git a/src/lib/signalr/handlers/DeviceUpdate.ts b/src/lib/signalr/handlers/DeviceUpdate.ts index 0dc78c37..51a87648 100644 --- a/src/lib/signalr/handlers/DeviceUpdate.ts +++ b/src/lib/signalr/handlers/DeviceUpdate.ts @@ -1,4 +1,4 @@ -import { HubUpdateType, isHubUpdateType } from '$lib/signalr/models/HubUpdateType'; +import { isHubUpdateType } from '$lib/signalr/models/HubUpdateType'; import { refreshOwnHubs } from '$lib/state/hubs-state.svelte'; import { isString } from '$lib/typeguards'; import { toast } from 'svelte-sonner'; @@ -10,9 +10,5 @@ export function handleSignalrDeviceUpdate(deviceId: unknown, updateType: unknown return; } - const typeLabel = HubUpdateType[updateType]; - - console.log(`🔄 DeviceUpdate: ${deviceId} → ${typeLabel}`); - refreshOwnHubs(); } diff --git a/src/routes/terminal/EspSerialConnection.ts b/src/routes/terminal/EspSerialConnection.ts index 434cbfb9..422e9e7c 100644 --- a/src/routes/terminal/EspSerialConnection.ts +++ b/src/routes/terminal/EspSerialConnection.ts @@ -17,7 +17,6 @@ async function setupESPLoader( /* empty */ } - console.log('setupESPLoader: ', serialPort); const transport = new Transport(serialPort); const flashOptions = { @@ -76,8 +75,6 @@ async function setupApplication(serialPort: SerialPort): Promise { /* empty */ } - console.log('setupApplication: ', serialPort); - try { // Need to connect to the ESP32 using the right settings. // Hardware flow control would be a disaster, as these pins are used to control the device's bootloader. @@ -310,7 +307,7 @@ export default class EspSerialConnection { } } } catch (e) { - console.log(e); + console.error(e); this.terminal.writeLine(`firmware disconnected: ${e}`); } finally { try { @@ -347,11 +344,9 @@ export default class EspSerialConnection { } async disconnect() { - console.log('Disconnecting'); await this._cycleTransport(); this.serialPort = null; this.terminal.clean(); - console.log('Disconnected'); } async erase() {