UI Updates and dual settings.toml editing

This commit is contained in:
Melissa LeBlanc-Williams 2023-02-16 15:00:55 -08:00
parent e21b36b4d1
commit 7726bf9bc3
11 changed files with 6 additions and 6 deletions

2
adabot

@ -1 +1 @@
Subproject commit 2415fa6b5c8e5bbb9a45d6ee4833d03a70bc25ae
Subproject commit a295390bb7c1a694cf64da74a5fe99d7dc51e334

View file

@ -436,13 +436,13 @@ export class CPInstallButton extends InstallButton {
}
try {
this.updateEspConnected(this.connectionStates.CONNECTING);
this.updateUIConnected(this.connectionStates.CONNECTING);
await esploader.initialize();
this.updateEspConnected(this.connectionStates.CONNECTED);
this.updateUIConnected(this.connectionStates.CONNECTED);
} catch (err) {
await esploader.disconnect();
// Disconnection before complete
this.updateEspConnected(this.connectionStates.DISCONNECTED);
this.updateUIConnected(this.connectionStates.DISCONNECTED);
this.errorMsg("Unable to connect to the board. Make sure it is in bootloader mode by holding the boot0 button when powering on and try again.")
return;
}
@ -468,7 +468,7 @@ export class CPInstallButton extends InstallButton {
} catch (err) {
await esploader.disconnect();
// Disconnection before complete
this.updateEspConnected(this.connectionStates.DISCONNECTED);
this.updateUIConnected(this.connectionStates.DISCONNECTED);
this.errorMsg("Oops, we lost connection to your board before completing the install. Please check your USB connection and click Connect again. Refresh the browser if it becomes unresponsive.")
}
}
@ -536,7 +536,7 @@ export class CPInstallButton extends InstallButton {
if (this.espStub) {
this.espStub.removeEventListener("disconnect", this.espDisconnect.bind(this));
await this.espStub.disconnect();
this.updateEspConnected(this.connectionStates.DISCONNECTED);
this.updateUIConnected(this.connectionStates.DISCONNECTED);
this.espStub = null;
}
}