summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src
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/device/hid_boot_interface/src
parent04f0cd5c801e5e1575bbc5c714ac9649053af683 (diff)
parent9602c06f8d52212b55b02533e188e91b7192c080 (diff)
Merge pull request #2202 from Rocky04/patch-4
Invoke unmounted state on configuration reset
Diffstat (limited to 'examples/device/hid_boot_interface/src')
-rw-r--r--examples/device/hid_boot_interface/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c
index 24ac3ae40..7ad5c53c2 100644
--- a/examples/device/hid_boot_interface/src/main.c
+++ b/examples/device/hid_boot_interface/src/main.c
@@ -102,7 +102,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;
}
//--------------------------------------------------------------------+