Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Fixed issue where service changed characteristic was enabled when not… #92

Merged
merged 1 commit into from
Sep 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nordicsemi/dfu/dfu_transport_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ def jump_from_buttonless_mode_to_bootloader(self, buttonless_uuid):
# Enable indication for Buttonless DFU Service
self.adapter.enable_indication(self.conn_handle, buttonless_uuid)

# Enable indication for Service changed Service
self.adapter.enable_indication(self.conn_handle, DFUAdapter.SERVICE_CHANGED_UUID)
# Enable indication for Service changed Service, if present.
if self.adapter.db_conns[self.conn_handle].get_char_handle(DFUAdapter.SERVICE_CHANGED_UUID):
self.adapter.enable_indication(self.conn_handle, DFUAdapter.SERVICE_CHANGED_UUID)

# Enter DFU mode
self.adapter.write_req(self.conn_handle, buttonless_uuid, [0x01])
Expand Down