Skip to content

Commit 9be0651

Browse files
committed
Fix vTaskDelay casting - closes #126
1 parent 2f9e8fc commit 9be0651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ void vPortDelay( const uint32_t ms )
648648
}
649649
else
650650
{
651-
vTaskDelay( (TickType_t) (ms) / portTICK_PERIOD_MS );
652-
delay( (unsigned long) (ms - portTICK_PERIOD_MS) % portTICK_PERIOD_MS );
651+
vTaskDelay( (TickType_t) (ms / portTICK_PERIOD_MS) );
652+
delay( (unsigned long) ( (ms - portTICK_PERIOD_MS) % portTICK_PERIOD_MS ) );
653653
}
654654
}
655655
#else

0 commit comments

Comments
 (0)