diff options
| author | Rocky04 <[email protected]> | 2023-08-07 12:04:22 +0000 |
|---|---|---|
| committer | Rocky04 <[email protected]> | 2023-08-07 12:04:22 +0000 |
| commit | 45af3d6a83f89d3b048701f8d6d7de15ebfa0101 (patch) | |
| tree | 71471b18f4ba3f10a306f318b7cc35182df22c73 /examples/device/dfu/src | |
| parent | 9560d0813f0872a1b8dfb337922b0ab5cc4cb811 (diff) | |
Update examples
Diffstat (limited to 'examples/device/dfu/src')
| -rw-r--r-- | examples/device/dfu/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/dfu/src/main.c b/examples/device/dfu/src/main.c index 5f37f25e1..caeed89e9 100644 --- a/examples/device/dfu/src/main.c +++ b/examples/device/dfu/src/main.c @@ -112,7 +112,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; } //--------------------------------------------------------------------+ |
