Skip to content

Commit b0aa4be

Browse files
committed
stlink updates use daplink style info
1 parent 2e80e28 commit b0aa4be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mbed_lstools/lstools_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ def _update_device_from_fs(self, device, read_details_txt):
221221
device['target_id'] = device['target_id_usb_id']
222222

223223
{
224-
'daplink': self._update_device_details_daplink,
224+
'daplink': self._update_device_details_daplink_compatible,
225+
'stlink': self._update_device_details_daplink_compatible,
225226
'jlink': self._update_device_details_jlink
226227
}[device['device_type'] or 'daplink'](device, read_details_txt)
227228
except (OSError, IOError) as e:
@@ -241,7 +242,7 @@ def _detect_device_type(self, device):
241242
return self.VENDOR_ID_DEVICE_TYPE_MAP.get(device.get('vendor_id'))
242243

243244

244-
def _update_device_details_daplink(self, device, read_details_txt):
245+
def _update_device_details_daplink_compatible(self, device, read_details_txt):
245246
""" Updates the daplink-specific device information based on files from its 'mount_point'
246247
@param device Dictionary containing device information
247248
@param read_details_txt A boolean controlling the presense of the

0 commit comments

Comments
 (0)