File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,16 @@ mbed_error_status_t mbed_error_initialize(void)
218
218
//We let the callback reset the error info, so check if its still valid and do the rest only if its still valid.
219
219
if (report_error_ctx -> error_reboot_count > 0 ) {
220
220
221
+ report_error_ctx -> is_error_processed = 1 ;//Set the flag that we already processed this error
222
+ crc_val = compute_crc32 (report_error_ctx , offsetof(mbed_error_ctx , crc_error_ctx ));
223
+ report_error_ctx -> crc_error_ctx = crc_val ;
224
+
221
225
//Enforce max-reboot only if auto reboot is enabled
222
226
#if MBED_CONF_PLATFORM_FATAL_ERROR_AUTO_REBOOT_ENABLED
223
227
if (report_error_ctx -> error_reboot_count >= MBED_CONF_PLATFORM_ERROR_REBOOT_MAX ) {
224
228
mbed_halt_system ();
225
229
}
226
230
#endif
227
- report_error_ctx -> is_error_processed = 1 ;//Set the flag that we already processed this error
228
- crc_val = compute_crc32 (report_error_ctx , offsetof(mbed_error_ctx , crc_error_ctx ));
229
- report_error_ctx -> crc_error_ctx = crc_val ;
230
231
}
231
232
}
232
233
}
You can’t perform that action at this time.
0 commit comments