Skip to content
Snippets Groups Projects
Commit cf5a096c authored by Dónal Murray's avatar Dónal Murray
Browse files

Fix blocking continue loop checking size

parent 68ad40a5
Branches
Tags
No related merge requests found
......@@ -57,7 +57,9 @@ async def draw_plots():
#asyncio.sleep(1)
if(pressure_inhale.qsize() == 0): continue
if(pressure_inhale.qsize() == 0):
await asyncio.sleep(0.1)
continue
pressure_inhale_deq.append(await pressure_inhale.get())
pressure_buffer_deq.append(pressure_buffer.get_nowait())
PID_D_deq.append(PID_D.get_nowait())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment