From 1ebeb9b4618e5d5fb32daa57556a2647da4e069b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 24 Aug 2023 10:44:19 +0200 Subject: [PATCH] fix btnpress info dump --- software/script/chameleon_cli_unit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index 8b98861..a18690c 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -1321,9 +1321,10 @@ class HWButtonSettingsGet(DeviceRequiredUnit): resp_long = self.cmd.get_long_button_press_fun(button) button_fn = chameleon_cmd.ButtonPressFunction.from_int(resp.data[0]) button_long_fn = chameleon_cmd.ButtonPressFunction.from_int(resp_long.data[0]) - print(f" - {colorama.Fore.GREEN}{button}{colorama.Style.RESET_ALL}: {button_fn}") + print(f" - {colorama.Fore.GREEN}{button} {colorama.Fore.YELLOW}short{colorama.Style.RESET_ALL}: {button_fn}") print(f" usage: {button_fn.usage()}") - print(f" long press usage: {button_long_fn.usage()}") + print(f" - {colorama.Fore.GREEN}{button} {colorama.Fore.YELLOW}long {colorama.Style.RESET_ALL}: {button_long_fn}") + print(f" usage: {button_long_fn.usage()}") print("") print(" - Successfully get button function from settings")