diff options
Diffstat (limited to 'cc3200/misc/help.c')
-rw-r--r-- | cc3200/misc/help.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cc3200/misc/help.c b/cc3200/misc/help.c index c681d4945..0059a4002 100644 --- a/cc3200/misc/help.c +++ b/cc3200/misc/help.c @@ -46,10 +46,9 @@ STATIC mp_obj_t pyb_help(uint n_args, const mp_obj_t *args) { if (n_args == 0) { // print a general help message printf("%s", help_text); - - } else { + } + else { // try to print something sensible about the given object - printf("object "); mp_obj_print(args[0], PRINT_STR); printf(" is of type %s\n", mp_obj_get_type_str(args[0])); @@ -76,7 +75,6 @@ STATIC mp_obj_t pyb_help(uint n_args, const mp_obj_t *args) { } } } - return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_help_obj, 0, 1, pyb_help); |