From 338b6c6e226add512ef4775d3268ca8fe5cd70a3 Mon Sep 17 00:00:00 2001 From: Marcin Niemira Date: Wed, 3 Jan 2024 20:35:39 +1100 Subject: [PATCH] bluetooth: Fix a typo in example code. Signed-off-by: Marcin Niemira --- micropython/bluetooth/aioble/examples/l2cap_file_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/bluetooth/aioble/examples/l2cap_file_server.py b/micropython/bluetooth/aioble/examples/l2cap_file_server.py index c3730ffd0..00ee204bb 100644 --- a/micropython/bluetooth/aioble/examples/l2cap_file_server.py +++ b/micropython/bluetooth/aioble/examples/l2cap_file_server.py @@ -97,7 +97,7 @@ async def l2cap_task(connection): if list_path: print("List:", list_path) try: - for name, _, _, size in os.ilistdir(list_path): + for name, _, _, size in os.listdir(list_path): await channel.send("{}:{}\n".format(size, name)) await channel.send("\n") await channel.flush()