summaryrefslogtreecommitdiff
path: root/extmod/asyncio/event.py
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/asyncio/event.py')
-rw-r--r--extmod/asyncio/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/asyncio/event.py b/extmod/asyncio/event.py
index e0b41f732..f11bb14e5 100644
--- a/extmod/asyncio/event.py
+++ b/extmod/asyncio/event.py
@@ -49,7 +49,7 @@ try:
def ioctl(self, req, flags):
if req == 3: # MP_STREAM_POLL
return self.state * flags
- return None
+ return -1 # Other requests are unsupported
def set(self):
self.state = 1