mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
fix gettimeofday()
tp->tv_usec = micros() not micros() * 1000
This commit is contained in:
parent
c83e17b31e
commit
1c8bcf6cb2
@ -101,7 +101,7 @@ int _gettimeofday_r(struct _reent* unused, struct timeval *tp, void *tzp)
|
|||||||
{
|
{
|
||||||
ensureBootTimeIsSet();
|
ensureBootTimeIsSet();
|
||||||
tp->tv_sec = s_bootTime + millis() / 1000;
|
tp->tv_sec = s_bootTime + millis() / 1000;
|
||||||
tp->tv_usec = micros() * 1000;
|
tp->tv_usec = micros();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user