extmod/network_ninaw10: Add missing raw socket type to socket().

This regression was introduced by 3d46fe67bf.
This commit is contained in:
iabdalkader 2023-04-04 22:53:55 +02:00 committed by Damien George
parent f34af3e42e
commit b4a0390cbe
1 changed files with 4 additions and 0 deletions

View File

@ -497,6 +497,10 @@ STATIC int network_ninaw10_socket_socket(mod_network_socket_obj_t *socket, int *
socket_type = NINA_SOCKET_TYPE_UDP;
break;
case MOD_NETWORK_SOCK_RAW:
socket_type = NINA_SOCKET_TYPE_RAW;
break;
default:
*_errno = MP_EINVAL;
return -1;