From 1e5377cdd12bd6f3e2f3646ee1b3781a7b6ec899 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Mon, 22 Jan 2024 17:58:21 +0000 Subject: [PATCH] minor fix --- perf_counter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/perf_counter.c b/perf_counter.c index afca69e..422e76d 100644 --- a/perf_counter.c +++ b/perf_counter.c @@ -255,10 +255,7 @@ void delay_ms(uint32_t wMs) lMs -= iCompensate; lMs += get_system_ticks(); - do { - observer = get_system_ticks(); - } while(observer < lMs); - //while(get_system_ticks() < lUs); + while(get_system_ticks() < lMs); } __attribute__((noinline))