diff --git a/platform/mbed_wait_api_no_rtos.c b/platform/mbed_wait_api_no_rtos.c index e0c32f448d..a972b063d0 100644 --- a/platform/mbed_wait_api_no_rtos.c +++ b/platform/mbed_wait_api_no_rtos.c @@ -142,7 +142,7 @@ static const uint16_t delay_loop_code[] = { }; /* Take the address of the code, set LSB to indicate Thumb, and cast to void() function pointer */ -#define delay_loop ((void(*)()) ((uintptr_t) delay_loop_code | 1)) +#define delay_loop ((void(*)()) ((uintptr_t) delay_loop_code + 1)) /* Some targets may not provide zero-wait-state flash performance. Export this function * to be overridable for targets to provide more accurate implementation like locating