diff options
author | PTH <thomas@pth.systems> | 2021-02-12 15:08:02 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-17 10:42:43 +1100 |
commit | 5cb91afb9b3b34bbf0ee022a3f69af90c01d1d54 (patch) | |
tree | 5d2abc2aa34633b70adb3dfb69b53b0e3a255967 /extmod/btstack/modbluetooth_btstack.c | |
parent | 6c4a5d185d7e70c22c0f72fb1cd8add251600548 (diff) | |
download | micropython-5cb91afb9b3b34bbf0ee022a3f69af90c01d1d54.tar.gz micropython-5cb91afb9b3b34bbf0ee022a3f69af90c01d1d54.zip |
zephyr/modusocket: Fix parameter in calls to net_context_get_XXX().
The following simple usocket example throws an error EINVAL on connect
import usocket
s = usocket.socket()
s.connect(usocket.getaddrinfo('www.micropython.org', 80)[0][-1])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] EINVAL
Fixing the context parameter in calls of net_context_get_family() and
net_context_get_type(), the connect works fine.
Tested on a nucleo_h743zi board.
Diffstat (limited to 'extmod/btstack/modbluetooth_btstack.c')
0 files changed, 0 insertions, 0 deletions