diff --git a/CMSIS/RTOS2/RTX/Source/rtx_thread.c b/CMSIS/RTOS2/RTX/Source/rtx_thread.c index 96a1e3196f..e69bf44f1d 100644 --- a/CMSIS/RTOS2/RTX/Source/rtx_thread.c +++ b/CMSIS/RTOS2/RTX/Source/rtx_thread.c @@ -400,7 +400,7 @@ static void osRtxThreadBlock (os_thread_t *thread) { prev = osRtxThreadObject(&osRtxInfo.thread.ready); next = prev->thread_next; - while ((next != NULL) && (next->priority > priority)) { + while ((next != NULL) && (next->priority >= priority)) { prev = next; next = next->thread_next; }