aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wirish/wirish_time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/wirish_time.h b/wirish/wirish_time.h
index ab225e8..719a775 100644
--- a/wirish/wirish_time.h
+++ b/wirish/wirish_time.h
@@ -59,8 +59,8 @@ static inline uint32 micros(void) {
uint32 res;
do {
- cycle_cnt = systick_get_count();
ms = millis();
+ cycle_cnt = systick_get_count();
} while (ms != millis());
/* SYSTICK_RELOAD_VAL is 1 less than the number of cycles it