We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b03b43 commit ae9e4aaCopy full SHA for ae9e4aa
1 file changed
CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c
@@ -843,9 +843,14 @@ osStatus_t osDelayUntil (uint32_t ticks) {
843
delay = (TickType_t)ticks - tcnt;
844
845
/* check if target tick has not expired */
846
- if(delay && 0 == (delay >> (8 * sizeof(TickType_t) - 1)){
+ if(delay && 0 == (delay >> (8 * sizeof(TickType_t) - 1))){
847
vTaskDelayUntil (&tcnt, delay));
848
}
849
+ else
850
+ {
851
+ /* No delay or already expired */
852
+ stat = osErrorParameter;
853
+ }
854
855
856
return (stat);
0 commit comments