Repository navigation
Conversation
|
You must allow to write the wrong backup to a box. As this is a working way to get a box working if their original flash image is lost. |
|
Good point, thanks. |
| fileMac && | ||
| chipMac && | ||
| fileMac !== chipMac && | ||
| !window.confirm( |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| } catch (err: any) { | ||
| console.error("[ESP32][Revvox] resetFlash: failed", err); | ||
| alert(err); | ||
| if (!err?.refused) alert(err); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| - gui: Fixed web login edge cases: the login page now appears when login gets enabled while the UI is open, and logging out while TeddyCloud is unreachable no longer leaves the logged-in view on screen | ||
| - gui: Failed file downloads in the library and the Tonie information dialog now show an error notification instead of failing silently | ||
| - gui: A failed upload in the browser-side (WASM) audio encoder no longer additionally raises an uncaught promise rejection after showing the error notification | ||
| - gui: ESP32 box setup: "Reset Box" now asks before writing and asks again for a backup of another box (MAC in the file name); a loaded file has to pass the patch step, a cancelled file dialog no longer leaves the page busy, and the chosen baud rate is used [https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/359](https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/359) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Choosing a file for "Reset Box" wrote all 8 MB at once, without the confirmation of the normal write and without looking at the box. It now goes to the flash step, asks, and refuses a backup whose file name (ESP32_<mac>, patched_<mac>) carries another box's MAC. A loaded file has to pass the patch step before it can be flashed, a cancelled file dialog no longer leaves the page busy, and the chosen baud rate is used.
Writing another box's backup can bring back a box whose own image is lost, so it stays possible: the reset now asks whether to write it anyway and writes nothing only when the user declines.
The question for another box's backup now uses ConfirmationDialog like the other questions on the page. As with the certificate overwrite, the reset stops after reading the MAC and OK runs it again with force.
72c8263 to
b07cb25
Compare
|
@henryk86 Rebased on The other two points were done before: another box's backup can be written again after a confirmation, and that confirmation uses |
henryk86
left a comment
There was a problem hiding this comment.
i am fine with this :) (not that this matters, but as i requested changes, i should also give a go after those have been fixed)
Choosing a file for "Reset Box" wrote all 8 MB at once, without the confirmation of the normal write and without looking at the box.
ESP32_<mac>,patched_<mac>, as teddyCloud names backups) is compared with the connected chip; on a mismatch the user is asked again whether to write it anyway (it can rescue a box whose own image is lost). Files with other names are written without the extra question.Tested:
npm run test,npm run build, Prettier,check:translations.Fixes #359