Skip to content

Commit

Permalink
tools/psoc6/get-devs.py: Exchanged sn attr prefix removal.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Sep 14, 2023
1 parent 146fbcb commit 242e176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/psoc6/get-devs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_kitprog_serial_number(udevadm_output_lines):
for line in udevadm_output_lines:
attr = re.search('ATTRS{serial}=="[a-zA-Z0-9]*"', str(line))
if attr is not None:
sn = attr.group().removeprefix("ATTRS{serial}==")
sn = attr.group()[len("ATTRS{serial}==") :]
sn = sn.strip('"')
return sn

Expand Down

0 comments on commit 242e176

Please sign in to comment.