Better polling rate

This commit is contained in:
whowechina
2025-01-04 23:22:38 +08:00
parent f9ffc4b182
commit d7014c0fa1
2 changed files with 3 additions and 1 deletions
Binary file not shown.
+3 -1
View File
@@ -115,6 +115,7 @@ static void core1_loop()
static void core0_loop()
{
uint64_t next_frame = time_us_64();
while(1) {
tud_task();
@@ -129,7 +130,8 @@ static void core0_loop()
hid_update();
sleep_us(900);
sleep_until(next_frame);
next_frame += 1001;
}
}