summaryrefslogtreecommitdiff
path: root/stmhal/modnwcc3k.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modnwcc3k.c')
-rw-r--r--stmhal/modnwcc3k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modnwcc3k.c b/stmhal/modnwcc3k.c
index e1426c055..ae403cacd 100644
--- a/stmhal/modnwcc3k.c
+++ b/stmhal/modnwcc3k.c
@@ -477,11 +477,11 @@ STATIC mp_obj_t cc3k_connect(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
// get ssid
- mp_uint_t ssid_len;
+ size_t ssid_len;
const char *ssid = mp_obj_str_get_data(args[0].u_obj, &ssid_len);
// get key and sec
- mp_uint_t key_len = 0;
+ size_t key_len = 0;
const char *key = NULL;
mp_uint_t sec = WLAN_SEC_UNSEC;
if (args[1].u_obj != mp_const_none) {