mbed_assert_failure: Don't take critical section

Assert failure took a critical section before calling `mbed_error`.

There's no need to take a critical section on assert failure -
mbed_error does not do this, and is designed to operate from normal
contexts.

Avoiding the critical section will improve the chances of console
initialisation due to assert failure working nicely.
pull/10358/head
Kevin Bracey 2019-04-09 16:05:31 +03:00
parent 380b27e741
commit f2a13a85a1
1 changed files with 0 additions and 1 deletions

View File

@ -23,7 +23,6 @@
MBED_NORETURN void mbed_assert_internal(const char *expr, const char *file, int line)
{
core_util_critical_section_enter();
mbed_error(MBED_ERROR_ASSERTION_FAILED, expr, 0, file, line);
}