diff options
| author | Ha Thach <[email protected]> | 2023-08-09 20:48:26 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-09 20:48:26 +0700 |
| commit | 92457ec99f1690b772ef9fa6b348256701c7fcf7 (patch) | |
| tree | a2ecde3f6562e57a1ceba382beb2b0b382bd14f9 /examples/device/hid_multiple_interface | |
| parent | 04f0cd5c801e5e1575bbc5c714ac9649053af683 (diff) | |
| parent | 9602c06f8d52212b55b02533e188e91b7192c080 (diff) | |
Merge pull request #2202 from Rocky04/patch-4
Invoke unmounted state on configuration reset
Diffstat (limited to 'examples/device/hid_multiple_interface')
| -rw-r--r-- | examples/device/hid_multiple_interface/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_multiple_interface/src/main.c b/examples/device/hid_multiple_interface/src/main.c index 516c342fa..30b4ae055 100644 --- a/examples/device/hid_multiple_interface/src/main.c +++ b/examples/device/hid_multiple_interface/src/main.c @@ -105,7 +105,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; } //--------------------------------------------------------------------+ |
