diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c index 8caf45521..92a8702fd 100644 --- a/cores/arduino/wiring.c +++ b/cores/arduino/wiring.c @@ -100,7 +100,7 @@ unsigned long micros() { SREG = oldSREG; - return ((m << 8) + t) * (64 / clockCyclesPerMicrosecond()); + return clockCyclesToMicroseconds(((m << 8) + t) * 64); } void delay(unsigned long ms)