diff options
| author | Ha Thach <[email protected]> | 2026-03-04 15:24:11 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-04 15:24:11 +0700 |
| commit | 13e0b0c4f149016c829f039dc082151bca01174f (patch) | |
| tree | 512d9340830a3cab772a7e89a1dc271d31446cf7 /examples/device/hid_multiple_interface/src/main.c | |
| parent | a8a4db3721cccd32c8e998a7aa816719294d7a66 (diff) | |
| parent | e4950e9b693171f7bb47d8c1f800ece8827242ec (diff) | |
Merge pull request #3490 from Precidata/non-blocking-host-v2
Fully asynchrounous host code (v2)
Diffstat (limited to 'examples/device/hid_multiple_interface/src/main.c')
| -rw-r--r-- | examples/device/hid_multiple_interface/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/hid_multiple_interface/src/main.c b/examples/device/hid_multiple_interface/src/main.c index 0bccd13c1..c71a9cbad 100644 --- a/examples/device/hid_multiple_interface/src/main.c +++ b/examples/device/hid_multiple_interface/src/main.c @@ -120,7 +120,7 @@ void hid_task(void) const uint32_t interval_ms = 10; static uint32_t start_ms = 0; - if ( board_millis() - start_ms < interval_ms) return; // not enough time + if ( tusb_time_millis_api() - start_ms < interval_ms) return; // not enough time start_ms += interval_ms; uint32_t const btn = board_button_read(); @@ -205,7 +205,7 @@ void led_blinking_task(void) static bool led_state = false; // Blink every interval ms - if ( board_millis() - start_ms < blink_interval_ms) return; // not enough time + if ( tusb_time_millis_api() - start_ms < blink_interval_ms) return; // not enough time start_ms += blink_interval_ms; board_led_write(led_state); |
