fix: Add a wait after the flash to the Provisioning tab

This commit is contained in:
2026-02-27 09:39:06 +02:00
parent 4ea8e56485
commit 5c6c871bb6

View File

@@ -533,7 +533,7 @@ function StepFlash({ device, onFlashed }) {
appendSerial("── Serial monitor started (115200 baud) ──"); appendSerial("── Serial monitor started (115200 baud) ──");
startSerialMonitor(port); startSerialMonitor(port);
onFlashed(); // Do NOT auto-advance — user clicks "Proceed to Verify" when ready
} catch (err) { } catch (err) {
setError(err.message || String(err)); setError(err.message || String(err));
setFlashing(false); setFlashing(false);
@@ -588,6 +588,7 @@ function StepFlash({ device, onFlashed }) {
)} )}
{!busy && ( {!busy && (
<div className="flex items-center gap-3">
<button <button
onClick={handleFlash} onClick={handleFlash}
disabled={!webSerialAvailable} disabled={!webSerialAvailable}
@@ -599,6 +600,16 @@ function StepFlash({ device, onFlashed }) {
</svg> </svg>
{done ? "Flash Again" : "Connect & Flash Device"} {done ? "Flash Again" : "Connect & Flash Device"}
</button> </button>
{done && (
<button
onClick={onFlashed}
className="flex items-center gap-2 px-5 py-2 text-sm rounded-md font-medium hover:opacity-90 transition-opacity cursor-pointer"
style={{ backgroundColor: "var(--accent)", color: "var(--bg-primary)" }}
>
Proceed to Verify
</button>
)}
</div>
)} )}
{flashing && ( {flashing && (