Skip to content

Commit

Permalink
test: dma: Fix k_sleep() parameter error
Browse files Browse the repository at this point in the history
Sleeping milliseconds should use k_sleep(K_MSEC(x)) rather than
k_sleep(x).

Signed-off-by: Song Qiang <[email protected]>
  • Loading branch information
cybertale authored and nashif committed Apr 8, 2020
1 parent c413cca commit b74cad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/drivers/dma/loop_transfer/src/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void main(void)
return;
}

k_sleep(SLEEPTIME);
k_sleep(K_MSEC(SLEEPTIME));

if (transfer_count < TRANSFER_LOOPS) {
transfer_count = TRANSFER_LOOPS;
Expand Down

0 comments on commit b74cad5

Please sign in to comment.