diff options
| author | hathach <[email protected]> | 2026-03-05 13:00:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-03-05 13:00:45 +0700 |
| commit | 0427fcfd02e6d6b8939b54984f58c3711d806ddd (patch) | |
| tree | 5d86bb047dc306cf383fc7258074294d343c6ae2 /examples/device/dynamic_configuration/src | |
| parent | 6e675da608b063e2ea7db1d700d788d6a247f9ec (diff) | |
| parent | ce8a073a31307d65e3337a2f69a5ea1b9b507ea5 (diff) | |
Merge branch 'master' into fork/armusin/threadx_osal
Diffstat (limited to 'examples/device/dynamic_configuration/src')
| -rw-r--r-- | examples/device/dynamic_configuration/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/dynamic_configuration/src/main.c b/examples/device/dynamic_configuration/src/main.c index dac74bb7a..8ebb42f9a 100644 --- a/examples/device/dynamic_configuration/src/main.c +++ b/examples/device/dynamic_configuration/src/main.c @@ -170,7 +170,7 @@ void midi_task(void) { while( tud_midi_available() ) tud_midi_packet_read(packet); // send note every 1000 ms - if (board_millis() - start_ms < 286) { + if (tusb_time_millis_api() - start_ms < 286) { return; // not enough time } start_ms += 286; @@ -209,7 +209,7 @@ void led_blinking_task(void) { static bool led_state = false; // Blink every interval ms - if (board_millis() - start_ms < blink_interval_ms) { + if (tusb_time_millis_api() - start_ms < blink_interval_ms) { return;// not enough time } start_ms += blink_interval_ms; |
