We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aea70d6 + 1a16e6a commit d857738Copy full SHA for d857738
ports/raspberrypi/supervisor/port.c
@@ -267,6 +267,9 @@ static volatile bool _woken_up;
267
268
uint64_t port_get_raw_ticks(uint8_t *subticks) {
269
uint64_t microseconds = time_us_64();
270
+ if (subticks != NULL) {
271
+ *subticks = (uint8_t)(((microseconds % 1000000) % 977) / 31);
272
+ }
273
return 1024 * (microseconds / 1000000) + (microseconds % 1000000) / 977;
274
}
275
0 commit comments