increase wifi channel limit

Co-authored-by: anecdata <16617689+anecdata@users.noreply.github.com>
This commit is contained in:
microDev 2021-11-04 09:10:11 +05:30
parent 41dcfda593
commit d5f0323ff7
No known key found for this signature in database
GPG Key ID: 2C0867BE60967730

View File

@ -55,7 +55,7 @@ STATIC mp_obj_t wifi_monitor_make_new(const mp_obj_type_t *type, size_t n_args,
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all_kw_array(n_args, n_kw, all_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
if (args[ARG_channel].u_int < 0 || args[ARG_channel].u_int > 11) {
if (args[ARG_channel].u_int < 0 || args[ARG_channel].u_int > 13) {
mp_raise_ValueError_varg(translate("%q out of bounds"), MP_QSTR_channel);
}