- server.py: claim the flash (state=bootloader) before spawning the task so
the concurrent-request guard is effective immediately; guard the bundled
image existence in the flash endpoint; single device.info() call per
endpoint; 400 for refused flashes (409 stays for already-running);
remove stale nvcurve-wireview-fw-*.bin temp files at startup
- wireview_firmware.py: drain stderr in its own reader thread (a full pipe
buffer would have hung the flash until timeout); chunked stdout reads
instead of per-character read(2); BuildStruct field checks in dataclass
order
- wireview.py: document the intentional 0xF1 overlap between CMD_BOOTLOADER
and SCREEN_RESUME_UPDATES (different command namespaces)
- tests: check() now fails loudly under pytest (optional import, standalone
runs unaffected); explicit reader-thread sync in test_enter_bootloader;
less brittle flash-progress assertion; self-documenting checksum
corruption in test_hex_parser
- frontend: refreshFirmware in useCallback + effect deps; NaN% guard on
flash.progress; explicit clear/keep masks in handleClear; WS firmware
message reuses WireViewFlashProgress via Pick
- docs: clarify that the dfu-util :leave modifier is what makes the device
exit the bootloader and reboot; document the 400 vs 409 API contract;
README now mentions per-pin readings, pin-imbalance gauge and fault
clearing