This commit is contained in:
Nemanja Nedeljkovic
2023-08-23 19:32:49 +02:00
parent 60cc62d3c9
commit 6e9582f4f2
+1 -1
View File
@@ -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: