mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 06:06:36 +00:00
Implement erase-first
This commit is contained in:
parent
a534ed8fda
commit
9f2d870fca
@ -56,6 +56,7 @@
|
||||
your computer and hit the button:
|
||||
</p>
|
||||
<esp-web-install-button
|
||||
erase-first
|
||||
manifest="firmware_build/manifest.json"
|
||||
></esp-web-install-button>
|
||||
<p>
|
||||
|
@ -129,7 +129,12 @@ export const startFlash = async (
|
||||
if (eraseFirst) {
|
||||
logEl.addRow({
|
||||
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