Skip to content

Commit

Permalink
cli: hw slot enable: bugfix default slot
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Oct 8, 2023
1 parent d127f0a commit cd51061
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion software/script/chameleon_cli_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,10 @@ def args_parser(self) -> ArgumentParserNoExit:
return parser

def on_exec(self, args: argparse.Namespace):
slot_num = args.slot
if args.slot is not None:
slot_num = args.slot
else:
slot_num = chameleon_cmd.SlotNumber.from_fw(self.cmd.get_active_slot())
if args.lf:
sense_type = chameleon_cmd.TagSenseType.LF
else:
Expand Down

0 comments on commit cd51061

Please sign in to comment.