Skip to content

Commit

Permalink
west: linkserver: Fix version detect for ihex support
Browse files Browse the repository at this point in the history
version detect never occured correctly and always yielded true

Signed-off-by: Peter van der Perk <[email protected]>
  • Loading branch information
PetervdPerk-NXP committed Jul 22, 2024
1 parent 5fc52a9 commit 567afc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/linkserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def flash(self, **kwargs):
self.do_erase()

# Use .elf, .hex or .bin, preferring .hex over .elf over .bin
if self.supports_hex and self.hex_name is not None and os.path.isfile(self.hex_name):
if self.supports_hex() and self.hex_name is not None and os.path.isfile(self.hex_name):
flash_cmd = (["load", self.hex_name])
elif self.elf_name is not None and os.path.isfile(self.elf_name):
flash_cmd = (["load", self.elf_name])
Expand Down

0 comments on commit 567afc2

Please sign in to comment.