makeitlabs / ratt

RATT (RFID All The Things) is an RFID access control system primarily for use on tools and equipment in makerspace environments. Based on Raspberry Pi Zero W and a custom hardware control board.
23 stars 4 forks source link

Timeout for RFID swipe on "Report Issue" #4

Closed bkgoodman closed 5 years ago

bkgoodman commented 5 years ago

"Report issue" should have a timeout waiting for the user's RFID swipe. It currently has none. It gets confusing when the next user swipes-in (maybe significantly later) - and inadvertently sends the last-user's pending message, and is not logged in.

(If it does have one - it's probably too long).

tangentaudio commented 5 years ago

Thanks, I did note this at one point but forgot about it.

tangentaudio commented 5 years ago

Fixed, there is now a 30 second timeout for the entire issue reporting process. Keypresses reset the timeout timer. Also added an "exit (no issue to report" issue as first item, and fixed bug with empty issue report when exiting.