diff --git a/orchestrateur/main.py b/orchestrateur/main.py index eda3dbb..6cfaf8b 100644 --- a/orchestrateur/main.py +++ b/orchestrateur/main.py @@ -250,7 +250,7 @@ async def rfid_listener_task(): tag_id = await asyncio.to_thread(rfid.read_tag) current_time = time.time() - if tag_id: + if tag_id and tag_id != "0000000000": # Debounce same tag within 3 seconds to avoid spamming the API if tag_id == last_scanned_tag and (current_time - last_scan_time) < 3.0: await asyncio.sleep(0.1)