From b74cad5a5d0f35905c4ab3d719bdc6b2794bc940 Mon Sep 17 00:00:00 2001 From: Song Qiang Date: Wed, 8 Apr 2020 17:01:42 +0800 Subject: [PATCH] test: dma: Fix k_sleep() parameter error Sleeping milliseconds should use k_sleep(K_MSEC(x)) rather than k_sleep(x). Signed-off-by: Song Qiang --- tests/drivers/dma/loop_transfer/src/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/drivers/dma/loop_transfer/src/dma.c b/tests/drivers/dma/loop_transfer/src/dma.c index dc5e9787773aef..e0d95749788f3d 100644 --- a/tests/drivers/dma/loop_transfer/src/dma.c +++ b/tests/drivers/dma/loop_transfer/src/dma.c @@ -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;