Skip to content

Commit feaf5f5

Browse files
committed
Update mphalport.c
1 parent 8de7ffc commit feaf5f5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ports/esp32/mphalport.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,13 @@ void check_esp_err_(esp_err_t code, const char* func, const int line, const char
8282
o_str->len = strlen((char *)o_str->data);
8383
o_str->hash = qstr_compute_hash(o_str->data, o_str->len);
8484
// raise
85-
#if 0
85+
DBG("Exception in function '%s' at line %d in file '%s'", func, line, file)
86+
/*
8687
mp_obj_t args[2] = { MP_OBJ_NEW_SMALL_INT(pcode), MP_OBJ_FROM_PTR(o_str) };
8788
nlr_raise(mp_obj_exception_make_new(&mp_type_OSError, 2, 0, args));
88-
#else
89-
DBG("Exception from function '%s' at line %d in file '%s'", func, line, file)
89+
*/
9090
mp_obj_t args[5] = { MP_OBJ_NEW_SMALL_INT(pcode), MP_OBJ_FROM_PTR(o_str), mp_obj_new_str(func, strlen(func)), mp_obj_new_int(line), mp_obj_new_str(file, strlen(file)) };
9191
nlr_raise(mp_obj_exception_make_new(&mp_type_OSError, 5, 0, args));
92-
#endif
9392
}
9493
}
9594

0 commit comments

Comments
 (0)