From d1c9b4b21b2d4d39719481eabca43db400e59e10 Mon Sep 17 00:00:00 2001 From: turbocool3r Date: Mon, 15 Jul 2024 02:35:37 +0300 Subject: [PATCH] Fix `hf mfu e(r|w)cnt` commands switching device into reader mode. --- software/script/chameleon_cli_unit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 67a4167..bf9bc2a 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -1671,7 +1671,7 @@ class HFMFEConfig(SlotIndexArgsAndGoUnit, HF14AAntiCollArgsUnit, DeviceRequiredU @hf_mfu.command('ercnt') -class HFMFUVERSION(ReaderRequiredUnit): +class HFMFUVERSION(DeviceRequiredUnit): def args_parser(self) -> ArgumentParserNoExit: parser = ArgumentParserNoExit() parser.description = 'Read MIFARE Ultralight / NTAG counter value.' @@ -1688,7 +1688,7 @@ class HFMFUVERSION(ReaderRequiredUnit): @hf_mfu.command('ewcnt') -class HFMFUVERSION(ReaderRequiredUnit): +class HFMFUVERSION(DeviceRequiredUnit): def args_parser(self) -> ArgumentParserNoExit: parser = ArgumentParserNoExit() parser.description = 'Read MIFARE Ultralight / NTAG counter value.'