mirror of
https://github.com/whowechina/geki_pico.git
synced 2026-10-10 16:28:09 +03:00
Better polling rate
This commit is contained in:
Binary file not shown.
+3
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user