if time_left < 5 and (last_timeout_refresh is None or last_timeout_refresh > time_left):
mk.set_message('LOGOUT: '+str(int(time_left)))
last_timeout_refresh = int(time_left)
+ cur_selection = ''
if logout_timeout != None and logout_timeout - time() <= 0:
logout_timeout = None
if len(cur_pin) == PIN_LENGTH and mk.done() and logout_timeout == None:
# start autologout
logout_timeout = time() + 15
- cur_selection = ''
mk.update_display()
scroll_options(username, mk)
continue
else:
- logout_timeout = 10
cur_selection += chr(key + ord('0'))
#make_selection(cur_selection)
# XXX this should move somewhere else: