LapStore commited on
Commit
80dfab2
·
1 Parent(s): f5f278d

corrected bug in queue length check

Browse files
Files changed (1) hide show
  1. mqtt_manager.py +1 -1
mqtt_manager.py CHANGED
@@ -28,7 +28,7 @@ def get_State(tl_id):
28
 
29
  def checked_ql(ql):
30
  max_queue_length = 16 # 15 # this is the maximum queue length for the road
31
- return int(ql)>max_queue_length # for now, always return True, can be improved later to check if the queue length is valid or not
32
  # ------------------ Listener ------------------ #
33
  def mqtt_listener():
34
  def on_message(client, userdata, message):
 
28
 
29
  def checked_ql(ql):
30
  max_queue_length = 16 # 15 # this is the maximum queue length for the road
31
+ return int(ql)<max_queue_length # for now, always return True, can be improved later to check if the queue length is valid or not
32
  # ------------------ Listener ------------------ #
33
  def mqtt_listener():
34
  def on_message(client, userdata, message):