Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/lib/signalr/handlers/DeviceUpdate.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -10,9 +10,5 @@ export function handleSignalrDeviceUpdate(deviceId: unknown, updateType: unknown
return;
}

const typeLabel = HubUpdateType[updateType];

console.log(`🔄 DeviceUpdate: ${deviceId} → ${typeLabel}`);

refreshOwnHubs();
}
7 changes: 1 addition & 6 deletions src/routes/terminal/EspSerialConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async function setupESPLoader(
/* empty */
}

console.log('setupESPLoader: ', serialPort);
const transport = new Transport(serialPort);

const flashOptions = {
Expand Down Expand Up @@ -76,8 +75,6 @@ async function setupApplication(serialPort: SerialPort): Promise<SerialPort> {
/* 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.
Expand Down Expand Up @@ -310,7 +307,7 @@ export default class EspSerialConnection {
}
}
} catch (e) {
console.log(e);
console.error(e);
this.terminal.writeLine(`firmware disconnected: ${e}`);
} finally {
try {
Expand Down Expand Up @@ -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() {
Expand Down
Loading