Increase backup baud rate to 921600 for faster flash read

This commit is contained in:
justin committed 2026-05-09 17:39:27 -07:00
1 parent cb7f013fac
commit 653ade2a57
1 file changed
+2 -2
+2 -2
View File
@@ -104,7 +104,7 @@ def backup_device():
print(f"\n Reading flash from {port} → {filename} ...")
result = subprocess.run(
f"esptool --port {port} read-flash 0x0 ALL {filename}",
f"esptool --port {port} --baud 921600 read-flash 0x0 ALL {filename}",
shell=True,
)
@@ -112,7 +112,7 @@ def backup_device():
print(f" ✓ Backup saved to {filename}")
print()
print(f" To restore your device to this backup, run:")
print(f" esptool --port {port} write-flash 0x0 {filename}")
print(f" esptool --port {port} --baud 921600 write-flash 0x0 {filename}")
else:
print(" ✗ Backup failed. You can continue or abort and retry manually.")
if input(" Continue without backup? [y/N]: ").strip().lower() not in ("y", "yes"):