mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Implement erase-first
This commit is contained in:
parent
a534ed8fda
commit
9f2d870fca
@ -56,6 +56,7 @@
|
|||||||
your computer and hit the button:
|
your computer and hit the button:
|
||||||
</p>
|
</p>
|
||||||
<esp-web-install-button
|
<esp-web-install-button
|
||||||
|
erase-first
|
||||||
manifest="firmware_build/manifest.json"
|
manifest="firmware_build/manifest.json"
|
||||||
></esp-web-install-button>
|
></esp-web-install-button>
|
||||||
<p>
|
<p>
|
||||||
|
@ -129,7 +129,12 @@ export const startFlash = async (
|
|||||||
if (eraseFirst) {
|
if (eraseFirst) {
|
||||||
logEl.addRow({
|
logEl.addRow({
|
||||||
id: "erase",
|
id: "erase",
|
||||||
content: html`Erasing device`,
|
content: html`Erasing device...`,
|
||||||
|
});
|
||||||
|
await espStub.eraseFlash();
|
||||||
|
logEl.addRow({
|
||||||
|
id: "erase",
|
||||||
|
content: html`Device erased`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user