Skip to content

Commit

Permalink
device: add time.sleep to wait message to prevent spinlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxzer committed Aug 28, 2019
1 parent 4a66376 commit f19d541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate/templates/device.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class PingDevice(object):
if msg is not None:
if msg.message_id in message_ids:
return msg
time.sleep(0.005)
return None

##
Expand Down

0 comments on commit f19d541

Please sign in to comment.