mirror of https://github.com/ARMmbed/mbed-os.git
parent
fd301c708b
commit
226219f3f2
|
@ -54,7 +54,7 @@ void wait_ms(int ms)
|
||||||
if (core_util_is_isr_active() || !core_util_are_interrupts_enabled()) {
|
if (core_util_is_isr_active() || !core_util_are_interrupts_enabled()) {
|
||||||
#if defined(MBED_TRAP_ERRORS_ENABLED) && MBED_TRAP_ERRORS_ENABLED
|
#if defined(MBED_TRAP_ERRORS_ENABLED) && MBED_TRAP_ERRORS_ENABLED
|
||||||
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_INVALID_OPERATION),
|
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_PLATFORM, MBED_ERROR_INVALID_OPERATION),
|
||||||
"Deprecated behavior: milli-sec delay should not be used in interrupt.\n");
|
"Deprecated behavior: milli-sec delay should not be used in interrupt.\n");
|
||||||
#else
|
#else
|
||||||
wait_us(ms * 1000);
|
wait_us(ms * 1000);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue