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