Skip to content

Commit 1c8bcf6

Browse files
Juppitigrr
authored andcommitted
fix gettimeofday()
tp->tv_usec = micros() not micros() * 1000
1 parent c83e17b commit 1c8bcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int _gettimeofday_r(struct _reent* unused, struct timeval *tp, void *tzp)
101101
{
102102
ensureBootTimeIsSet();
103103
tp->tv_sec = s_bootTime + millis() / 1000;
104-
tp->tv_usec = micros() * 1000;
104+
tp->tv_usec = micros();
105105
}
106106
return 0;
107107
}

0 commit comments

Comments
 (0)