diff --git a/uasyncio.core/uasyncio/core.py b/uasyncio.core/uasyncio/core.py index 0bb8928f..10e97070 100644 --- a/uasyncio.core/uasyncio/core.py +++ b/uasyncio.core/uasyncio/core.py @@ -64,11 +64,12 @@ class EventLoop: else: delay = 0 try: - if args == (): - args = (None,) if __debug__: log.debug("Coroutine %s send args: %s", cb, args) - ret = cb.send(*args) + if args == (): + ret = next(cb) + else: + ret = cb.send(*args) if __debug__: log.debug("Coroutine %s yield result: %s", cb, ret) if isinstance(ret, SysCall1):