mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 15:35:39 +02:00
Frontend: Replace inline SpoolInfoCard/UnknownTagCard with full-screen TagDetectedModal that auto-opens on NFC tag detection. Known spools show remaining weight, fill bar, and offer "Assign to AMS" (new sub-modal with printer selector + AMS slot grid) and "Sync Weight". Unknown tags offer "Add to Inventory" and "Link to Spool". Modal stays open on tag removal, won't re-open for dismissed tags, reopens on re-place after removal. Daemon: Fix PN5180 NFC reader silently stopping tag detection. The reader drifts into a stuck state where activate_type_a() returns None without raising exceptions, making error-based recovery useless. Changed the preventive idle maintenance from a lightweight RF off/on cycle to a full hardware reset (RST pin toggle + RF re-init) every 60s — the same reset that a service restart performs. Also added error-based auto-recovery after 10 consecutive exceptions, promoted poll errors to WARNING, added periodic status logging, and fixed heartbeat to report actual nfc_ok/ scale_ok instead of hardcoded True.