summaryrefslogtreecommitdiff
path: root/examples/dual
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-08-09 20:48:26 +0700
committerGitHub <[email protected]>2023-08-09 20:48:26 +0700
commit92457ec99f1690b772ef9fa6b348256701c7fcf7 (patch)
treea2ecde3f6562e57a1ceba382beb2b0b382bd14f9 /examples/dual
parent04f0cd5c801e5e1575bbc5c714ac9649053af683 (diff)
parent9602c06f8d52212b55b02533e188e91b7192c080 (diff)
Merge pull request #2202 from Rocky04/patch-4
Invoke unmounted state on configuration reset
Diffstat (limited to 'examples/dual')
-rw-r--r--examples/dual/host_hid_to_device_cdc/src/main.c2
1 files changed, 1 insertions, 1 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 f96f63a0d..96a2beff5 100644
--- a/examples/dual/host_hid_to_device_cdc/src/main.c
+++ b/examples/dual/host_hid_to_device_cdc/src/main.c
@@ -125,7 +125,7 @@ void tud_suspend_cb(bool remote_wakeup_en)
// Invoked when usb bus is resumed
void tud_resume_cb(void)
{
- blink_interval_ms = BLINK_MOUNTED;
+ blink_interval_ms = tud_mounted() ? BLINK_MOUNTED : BLINK_NOT_MOUNTED;
}
// Invoked when CDC interface received data from host