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:
GameTec-live
2026-02-06 11:19:48 +01:00
committed by GitHub
+5
View File
@@ -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: