From: Mitchell Pomery Date: Wed, 4 Mar 2015 06:34:00 +0000 (+0800) Subject: Fix bug were cards read before logging in cannot be read until a logout occurs X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2a6c4f6e2a5697341f5ea7f22f36d7761870e10f;p=uccvend-vendserver.git Fix bug were cards read before logging in cannot be read until a logout occurs --- diff --git a/VendServer/VendServer.py b/VendServer/VendServer.py index 8fbf11e..c16cff1 100755 --- a/VendServer/VendServer.py +++ b/VendServer/VendServer.py @@ -887,6 +887,7 @@ def handle_mifare_event(state, event, params, v, vstatus): (center('SORRY'), False, 0.5)]) vstatus.cur_user = '' vstatus.cur_pin = '' + _last_card_id = -1 reset_idler(v, vstatus, 2) return