sci-bots / base-node-rpc

Base classes for Arduino RPC node/device
0 stars 2 forks source link

read_device_id() fails to return a value #23

Closed ryanfobel closed 3 years ago

ryanfobel commented 3 years ago

This bug seems to have been introduced in commit 9b74852285c4314fc1fe04b5021c3480c2e1c26a where a yield statement was converted to a return statement:

-    yield asyncio.From(asyncio.wait_for(_read_device_id(**kwargs),
-                                        timeout=timeout))
+    return asyncio.wait_for(_read_device_id(**kwargs), timeout=timeout)

Reverting this change should fix the issue.