feat: wait ready

This commit is contained in:
2026-05-19 09:50:28 +02:00
parent f838a3bd16
commit 22a85bcc2a
2 changed files with 13 additions and 10 deletions
@@ -57,9 +57,13 @@
retries = 2;
while (retries-- > 0 && !success) {
try {
await port.updateFirmware(file, (transferred, total) => {
progress = transferred / total;
});
await port.updateFirmware(
file,
(transferred, total) => {
progress = transferred / total;
},
retries === 0,
);
success = true;
} catch (e) {