diff --git a/components/esp_system/panic.c b/components/esp_system/panic.c index 7418a4b441..2a88f22bb1 100644 --- a/components/esp_system/panic.c +++ b/components/esp_system/panic.c @@ -327,10 +327,6 @@ void __attribute__((noreturn)) panic_abort(const char *details) #endif #endif - while (1) { - if (esp_cpu_in_ocd_debug_mode()) { - cpu_hal_break(); - } - *((int *) 0) = 0; // should be an invalid operation on targets - } + *((int *) 0) = 0; // should be an invalid operation on targets + while(1); } \ No newline at end of file