Skip to content

Commit 870c5f9

Browse files
authored
Merge pull request #40 from KurtE/arduino
Fix micros() rollover
2 parents 90d578a + 84db652 commit 870c5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/zephyrCommon.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void delay(unsigned long ms) { k_sleep(K_MSEC(ms)); }
271271
void delayMicroseconds(unsigned int us) { k_sleep(K_USEC(us)); }
272272

273273
unsigned long micros(void) {
274-
return k_cyc_to_us_floor32(k_cycle_get_32());
274+
return k_cyc_to_us_floor32(k_cycle_get_64());
275275
}
276276

277277
unsigned long millis(void) { return k_uptime_get_32(); }

0 commit comments

Comments
 (0)