File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -220,9 +220,11 @@ void __wrap_system_restart_local() {
220
220
221
221
cut_here ();
222
222
223
- // now outside from the "cut-here" zone, print correctly the malloc address,
224
- // idf-monitor.py will be able to decode this one and show exact location in sources
225
- ets_printf_P (PSTR (" \n last failed alloc call: 0x%08x\n " ), (uint32_t )umm_last_fail_alloc_addr);
223
+ if (s_unhandled_exception && umm_last_fail_alloc_addr) {
224
+ // now outside from the "cut-here" zone, print correctly the `new` caller address,
225
+ // idf-monitor.py will be able to decode this one and show exact location in sources
226
+ ets_printf_P (PSTR (" \n last failed alloc caller: 0x%08x\n " ), (uint32_t )umm_last_fail_alloc_addr);
227
+ }
226
228
227
229
custom_crash_callback ( &rst_info, sp_dump + offset, stack_end );
228
230
You can’t perform that action at this time.
0 commit comments