summaryrefslogtreecommitdiff
path: root/examples/device/dfu_runtime
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/dfu_runtime
parent04f0cd5c801e5e1575bbc5c714ac9649053af683 (diff)
parent9602c06f8d52212b55b02533e188e91b7192c080 (diff)
Merge pull request #2202 from Rocky04/patch-4
Invoke unmounted state on configuration reset
Diffstat (limited to 'examples/device/dfu_runtime')
-rw-r--r--examples/device/dfu_runtime/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/dfu_runtime/src/main.c b/examples/device/dfu_runtime/src/main.c
index 2ea39fb0f..170dde932 100644
--- a/examples/device/dfu_runtime/src/main.c
+++ b/examples/device/dfu_runtime/src/main.c
@@ -111,7 +111,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 on DFU_DETACH request to reboot to the bootloader