File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ mbed_error_status_t mbed_error_initialize(void)
211
211
if ((report_error_ctx -> crc_error_ctx == crc_val ) && (report_error_ctx -> is_error_processed == 0 )) {
212
212
is_reboot_error_valid = true;
213
213
//Report the error info
214
+ #ifndef NDEBUG
214
215
printf ("\n== The system has been rebooted due to a fatal error. ==\n" );
216
+ #endif
215
217
216
218
//Call the mbed_error_reboot_callback, this enables applications to do some handling before we do the handling
217
219
mbed_error_reboot_callback (report_error_ctx );
@@ -223,7 +225,9 @@ mbed_error_status_t mbed_error_initialize(void)
223
225
#if MBED_CONF_PLATFORM_FATAL_ERROR_AUTO_REBOOT_ENABLED
224
226
if (report_error_ctx -> error_reboot_count >= MBED_CONF_PLATFORM_ERROR_REBOOT_MAX ) {
225
227
//We have rebooted more than enough, hold the system here.
228
+ #ifndef NDEBUG
226
229
printf ("\n== Reboot count(=%ld) exceeded maximum, system halting ==\n" , report_error_ctx -> error_reboot_count );
230
+ #endif
227
231
mbed_halt_system ();
228
232
}
229
233
#endif
You can’t perform that action at this time.
0 commit comments