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

Lines changed: 3 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy