From 4c2af960473e706df1bb3331c261484a3cbf4b2c Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 15 Jan 2024 10:14:08 -0600 Subject: [PATCH] Update async keyboard code ... per https://github.com/adafruit/circuitpython/issues/8412 Otherwise this is incompatible with both 8.x and 9. --- CircuitPython_Commodore_16_KB2040/advanced/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CircuitPython_Commodore_16_KB2040/advanced/code.py b/CircuitPython_Commodore_16_KB2040/advanced/code.py index c26f3c263..ca037f678 100644 --- a/CircuitPython_Commodore_16_KB2040/advanced/code.py +++ b/CircuitPython_Commodore_16_KB2040/advanced/code.py @@ -142,7 +142,7 @@ def __init__(self, events): self._events = events async def __await__(self): - yield asyncio.core._io_queue.queue_read(self._events) + await asyncio.core._io_queue.queue_read(self._events) return self._events.get() def __enter__(self):