Spaces:
Sleeping
Sleeping
LapStore
commited on
Commit
·
5edff06
1
Parent(s):
6a2b4c4
debug mqtt
Browse files- traffic_utils.py +2 -2
traffic_utils.py
CHANGED
|
@@ -57,13 +57,13 @@ async def open_signal(tl_id,state_,duration,delay):
|
|
| 57 |
|
| 58 |
state.singlas_state[tl_id] = state.status_chk
|
| 59 |
print(state.request[tl_id])
|
| 60 |
-
|
| 61 |
await wait_check_conection(tl_id,check_time)
|
| 62 |
print(state.request[tl_id])
|
| 63 |
|
| 64 |
if (state.request[tl_id]['accepted']== True):
|
| 65 |
|
| 66 |
-
|
| 67 |
print(state.request)
|
| 68 |
await asyncio.sleep(duration)
|
| 69 |
#state.delete_last_request(tl_id)
|
|
|
|
| 57 |
|
| 58 |
state.singlas_state[tl_id] = state.status_chk
|
| 59 |
print(state.request[tl_id])
|
| 60 |
+
|
| 61 |
await wait_check_conection(tl_id,check_time)
|
| 62 |
print(state.request[tl_id])
|
| 63 |
|
| 64 |
if (state.request[tl_id]['accepted']== True):
|
| 65 |
|
| 66 |
+
state.set_request(tl_id,state_,duration)
|
| 67 |
print(state.request)
|
| 68 |
await asyncio.sleep(duration)
|
| 69 |
#state.delete_last_request(tl_id)
|