summaryrefslogtreecommitdiff
path: root/examples/dual/host_hid_to_device_cdc/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dual/host_hid_to_device_cdc/src/main.c')
-rw-r--r--examples/dual/host_hid_to_device_cdc/src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/dual/host_hid_to_device_cdc/src/main.c b/examples/dual/host_hid_to_device_cdc/src/main.c
index 8c53588c3..c8fca48f8 100644
--- a/examples/dual/host_hid_to_device_cdc/src/main.c
+++ b/examples/dual/host_hid_to_device_cdc/src/main.c
@@ -98,8 +98,6 @@ int main(void) {
tuh_task(); // tinyusb host task
led_blinking_task();
}
-
- return 0;
}
//--------------------------------------------------------------------+
@@ -284,7 +282,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);