fix: Add a wait after the flash to the Provisioning tab
This commit is contained in:
@@ -533,7 +533,7 @@ function StepFlash({ device, onFlashed }) {
|
||||
appendSerial("── Serial monitor started (115200 baud) ──");
|
||||
startSerialMonitor(port);
|
||||
|
||||
onFlashed();
|
||||
// Do NOT auto-advance — user clicks "Proceed to Verify" when ready
|
||||
} catch (err) {
|
||||
setError(err.message || String(err));
|
||||
setFlashing(false);
|
||||
@@ -588,6 +588,7 @@ function StepFlash({ device, onFlashed }) {
|
||||
)}
|
||||
|
||||
{!busy && (
|
||||
<div className="flex items-center gap-3">
|
||||
<button
|
||||
onClick={handleFlash}
|
||||
disabled={!webSerialAvailable}
|
||||
@@ -599,6 +600,16 @@ function StepFlash({ device, onFlashed }) {
|
||||
</svg>
|
||||
{done ? "Flash Again" : "Connect & Flash Device"}
|
||||
</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 && (
|
||||
|
||||
Reference in New Issue
Block a user