kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Convert Sleep syscall arg (seconds) to milliseconds.
rodzic
222758f0c2
commit
24125191ce
|
@ -86,7 +86,7 @@ class EventLoop:
|
|||
if isinstance(ret, SysCall1):
|
||||
arg = ret.arg
|
||||
if isinstance(ret, Sleep):
|
||||
delay = arg
|
||||
delay = int(arg * 1000)
|
||||
elif isinstance(ret, IORead):
|
||||
# self.add_reader(ret.obj.fileno(), lambda self, c, f: self.call_soon(c, f), self, cb, ret.obj)
|
||||
# self.add_reader(ret.obj.fileno(), lambda c, f: self.call_soon(c, f), cb, ret.obj)
|
||||
|
|
Ładowanie…
Reference in New Issue