kopia lustrzana https://github.com/micropython/micropython
rp2/main: Use mp_printf in nlr_jump_fail.
The mp_plat_print output is already being used by the subsequent call to mp_obj_print_exception(). And this eliminates all references to printf for this port (at least in non-debug builds). Signed-off-by: Damien George <damien@micropython.org>pull/8593/merge
rodzic
1978b838b7
commit
8a0353525f
|
@ -234,7 +234,7 @@ void gc_collect(void) {
|
|||
}
|
||||
|
||||
void nlr_jump_fail(void *val) {
|
||||
printf("FATAL: uncaught exception %p\n", val);
|
||||
mp_printf(&mp_plat_print, "FATAL: uncaught exception %p\n", val);
|
||||
mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(val));
|
||||
for (;;) {
|
||||
__breakpoint();
|
||||
|
|
Ładowanie…
Reference in New Issue