Throw ESPError

This commit is contained in:
Paul Kendall 2022-07-12 19:15:40 +12:00
parent 42733464c0
commit 646993a549

View File

@ -874,7 +874,7 @@ class ESPLoader {
this.flash_begin(0, 0); this.flash_begin(0, 0);
this.flash_finish(false); this.flash_finish(false);
} else if (this.chip.CHIP_NAME != "ESP8266") { } else if (this.chip.CHIP_NAME != "ESP8266") {
throw("Soft resetting is currently only supported on ESP8266"); throw new ESPError("Soft resetting is currently only supported on ESP8266");
} else { } else {
// running user code from stub loader requires some hacks // running user code from stub loader requires some hacks
// in the stub loader // in the stub loader