mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-05-12 11:22:59 -07:00
Merge pull request #332 from RickConsole/fix-hidprox-cli-args
fix hidprox UnboundLocalError cli arg error + hidprox slot set warning
This commit is contained in:
@@ -3773,6 +3773,11 @@ class LFHIDProxEconfig(SlotIndexArgsAndGoUnit, LFHIDIdArgsUnit):
|
||||
|
||||
def on_exec(self, args: argparse.Namespace):
|
||||
if args.cn is not None:
|
||||
slotinfo = self.cmd.get_slot_info()
|
||||
selected = SlotNumber.from_fw(self.cmd.get_active_slot())
|
||||
lf_tag_type = TagSpecificType(slotinfo[selected - 1]['lf'])
|
||||
if lf_tag_type != TagSpecificType.HIDProx:
|
||||
print(f"{color_string((CR, 'WARNING'))}: Slot type not set to HIDProx.")
|
||||
if args.fc is None:
|
||||
args.fc = 0
|
||||
if args.il is None:
|
||||
|
||||
Reference in New Issue
Block a user