diff --git a/nordicsemi/dfu/dfu_transport_ble.py b/nordicsemi/dfu/dfu_transport_ble.py index e1765f8..9b56696 100644 --- a/nordicsemi/dfu/dfu_transport_ble.py +++ b/nordicsemi/dfu/dfu_transport_ble.py @@ -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])