From 9220dc466a8d098ed669a33a617edd1118a3e35d Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Wed, 8 Jul 2015 13:13:37 +0200 Subject: cc3200: Correct udelay us to ticks calculation. --- cc3200/hal/cc3200_hal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cc3200/hal/cc3200_hal.c') diff --git a/cc3200/hal/cc3200_hal.c b/cc3200/hal/cc3200_hal.c index afc5fb724..526211fee 100644 --- a/cc3200/hal/cc3200_hal.c +++ b/cc3200/hal/cc3200_hal.c @@ -123,9 +123,7 @@ void HAL_Delay(uint32_t delay) { #endif } else { for (int ms = 0; ms < delay; ms++) { - // 500 instead of 1000 us to compensate the overhead of the for loop - // and the function call - UtilsDelay(UTILS_DELAY_US_TO_COUNT(500)); + UtilsDelay(UTILS_DELAY_US_TO_COUNT(1000)); } } } -- cgit v1.2.3