Better polling rate

This commit is contained in:
whowechina
2025-01-04 22:57:36 +08:00
parent 719058f5aa
commit 59d9efa781
2 changed files with 4 additions and 0 deletions
Binary file not shown.
+4
View File
@@ -228,6 +228,7 @@ static void core1_loop()
static void core0_loop()
{
uint64_t next_frame = time_us_64();
while(1) {
tud_task();
@@ -246,6 +247,9 @@ static void core0_loop()
report_usb_hid();
runtime_ctrl();
sleep_until(next_frame);
next_frame += 1001;
}
}