Skip to content

Commit

Permalink
west: linkserver: Fix version detect for ihex support
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervdPerk committed Jul 22, 2024
1 parent a489b90 commit 53dce3c
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 53dce3c

Please sign in to comment.