From 6e9582f4f25e86ade744fced1e70fd1e2bdccfe7 Mon Sep 17 00:00:00 2001 From: Nemanja Nedeljkovic Date: Wed, 23 Aug 2023 19:32:49 +0200 Subject: [PATCH] Fix bug --- software/script/chameleon_cli_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 35312b6..94057c4 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -1348,7 +1348,7 @@ class HWButtonSettingsSet(DeviceRequiredUnit): def on_exec(self, args: argparse.Namespace): button = chameleon_cmd.ButtonType.from_str(args.b) function = chameleon_cmd.ButtonPressFunction.from_int(args.f) - long = args.l == 1 + long = args.long == 1 if long: self.cmd.set_long_button_press_fun(button, function) else: