Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit d85d1f2

Browse files
committed
LTE: allow lte_debug to be toggled
1 parent 82c17cb commit d85d1f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

esp32/mods/modlte.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,7 @@ STATIC mp_obj_t lte_init(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *k
658658
// parse args
659659
mp_arg_val_t args[MP_ARRAY_SIZE(lte_init_args) - 1];
660660
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(args), &lte_init_args[1], args);
661-
if (args[3].u_bool)
662-
lte_debug = true;
661+
lte_debug = args[3].u_bool;
663662
return lte_init_helper(pos_args[0], args);
664663
}
665664
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(lte_init_obj, 1, lte_init);

0 commit comments

Comments
 (0)