def handle_hal(self, resp): putil.trace("rfid check data: \"{}\"".format(resp)) if not resp or len(resp) < 2: putil.trace("HAL doesnt know user or no contact") Foodputer.set_state(start) GUI.no_rfid() return Foodputer.new_order( resp['user'], resp['token']) Foodputer.set_state(ordering) Pin_check.tries_left = 3; GUI.valid_rfid()