Reenable a try/catch
This commit is contained in:
parent
ca8279779b
commit
3e3e864137
1 changed files with 3 additions and 3 deletions
|
|
@ -675,7 +675,7 @@ export class CPInstallButton extends InstallButton {
|
|||
return;
|
||||
}
|
||||
|
||||
//try {
|
||||
try {
|
||||
this.logMsg(`Connected to ${this.esploader.chip.CHIP_NAME}`);
|
||||
|
||||
// check chip compatibility
|
||||
|
|
@ -695,14 +695,14 @@ export class CPInstallButton extends InstallButton {
|
|||
this.errorMsg("Oops, this is the wrong firmware for your board.")
|
||||
await this.espDisconnect();
|
||||
|
||||
/*} catch (err) {
|
||||
} catch (err) {
|
||||
if (this.transport) {
|
||||
await this.transport.disconnect();
|
||||
}
|
||||
// Disconnection before complete
|
||||
this.updateEspConnected(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.")
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
async onSerialReceive(e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue