Skip to content

Commit a5941fa

Browse files
MarekPietarlubos
authored andcommitted
applications: nrf_desktop: Improve USB suspend in BLE conn params
Change improves USB suspend handling in BLE conn params module. The connection parameters are updated back to defaults when USB cable is disconnected. This is done to make the behavior more consistent (longer connection intervals are used only while USB is suspended) and to speed up sending HID reports when USB is reconnected in case dongle has an external power supppy (e.g. DK acting as a dongle). Jira: NCSDK-30261 Signed-off-by: Marek Pieta <[email protected]>
1 parent a4557dd commit a5941fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

applications/nrf_desktop/src/modules/ble_conn_params.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ static void usb_state_event_handler(enum usb_state new_state)
242242
usb_suspended = true;
243243
break;
244244

245+
case USB_STATE_DISCONNECTED:
245246
case USB_STATE_ACTIVE:
246247
usb_suspended = false;
247248
break;

0 commit comments

Comments
 (0)