From 8d9d6f692c91955ba79143e9e64e43ae61423f56 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Tue, 19 Apr 2016 13:23:04 -0700 Subject: [PATCH] Fix platform_delay --- src/platforms/stm32/timing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/stm32/timing.c b/src/platforms/stm32/timing.c index 55a217a..725674d 100644 --- a/src/platforms/stm32/timing.c +++ b/src/platforms/stm32/timing.c @@ -50,7 +50,7 @@ bool platform_timeout_is_expired(void) void platform_delay(uint32_t delay) { platform_timeout_set(delay); - while (platform_timeout_is_expired()); + while (!platform_timeout_is_expired()); } void sys_tick_handler(void)