mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 11:25:48 +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 failing to maintain tag detection. After a successful SELECT the card stays in ACTIVE state and ignores subsequent WUPA/REQA, causing immediate false "tag removed" events. Added a brief RF off/on cycle (13ms) before each poll to force cards back to IDLE state. Also added a preventive full hardware reset every 60s when idle to recover from deeper stuck states where activate_type_a() silently returns None without exceptions. Heartbeat now reports actual nfc_ok/ scale_ok instead of hardcoded True.