Skip to content

Commit

Permalink
Fix vTaskDelay casting - closes #126
Browse files Browse the repository at this point in the history
  • Loading branch information
feilipu committed Jan 2, 2024
1 parent 2f9e8fc commit 9be0651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ void vPortDelay( const uint32_t ms )
}
else
{
vTaskDelay( (TickType_t) (ms) / portTICK_PERIOD_MS );
delay( (unsigned long) (ms - portTICK_PERIOD_MS) % portTICK_PERIOD_MS );
vTaskDelay( (TickType_t) (ms / portTICK_PERIOD_MS) );
delay( (unsigned long) ( (ms - portTICK_PERIOD_MS) % portTICK_PERIOD_MS ) );
}
}
#else
Expand Down

0 comments on commit 9be0651

Please sign in to comment.