Skip to content

Commit

Permalink
Merge pull request #12275 from keestux/fix-arduino-millis
Browse files Browse the repository at this point in the history
sys/arduino: use 64bit usec to compute millis()
  • Loading branch information
maribu authored Sep 19, 2019
2 parents 66f1cc7 + d9e0c6c commit 8c94a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/arduino/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ unsigned long micros()

unsigned long millis()
{
return xtimer_now_usec() / US_PER_MS;
return xtimer_now_usec64() / US_PER_MS;
}

int analogRead(int arduino_pin)
Expand Down

0 comments on commit 8c94a16

Please sign in to comment.