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) ──");
|
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,17 +588,28 @@ function StepFlash({ device, onFlashed }) {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{!busy && (
|
{!busy && (
|
||||||
<button
|
<div className="flex items-center gap-3">
|
||||||
onClick={handleFlash}
|
<button
|
||||||
disabled={!webSerialAvailable}
|
onClick={handleFlash}
|
||||||
className="flex items-center gap-2 px-5 py-2 text-sm rounded-md font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50"
|
disabled={!webSerialAvailable}
|
||||||
style={{ backgroundColor: "var(--btn-primary)", color: "var(--text-white)" }}
|
className="flex items-center gap-2 px-5 py-2 text-sm rounded-md font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50"
|
||||||
>
|
style={{ backgroundColor: "var(--btn-primary)", color: "var(--text-white)" }}
|
||||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
>
|
||||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
|
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
</svg>
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
|
||||||
{done ? "Flash Again" : "Connect & Flash Device"}
|
</svg>
|
||||||
</button>
|
{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 && (
|
{flashing && (
|
||||||
|
|||||||
Reference in New Issue
Block a user