We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f5538b + e23ef9c commit c05a37dCopy full SHA for c05a37d
cores/arduino/delay.c
@@ -36,7 +36,7 @@ unsigned long millis( void )
36
// values to calculate micros. If there is a pending SysTick, add one to the millis counter in the calculation.
37
unsigned long micros( void )
38
{
39
- return RTIMER_NOW() * 1000000/RTIMER_ARCH_SECOND;
+ return RTIMER_NOW() /(RTIMER_ARCH_SECOND/1000000);
40
}
41
42
static struct etimer delay_timer;
0 commit comments