From 6d80ad74769200e896bbc6aa546b3ca132fb3135 Mon Sep 17 00:00:00 2001 From: Cleanroom Laptop L15 Date: Fri, 22 Apr 2022 14:21:08 +0200 Subject: [PATCH] adc channel input in hex --- pus_tc/devs/ploc_supervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pus_tc/devs/ploc_supervisor.py b/pus_tc/devs/ploc_supervisor.py index 348c92d..b074d0b 100644 --- a/pus_tc/devs/ploc_supervisor.py +++ b/pus_tc/devs/ploc_supervisor.py @@ -626,7 +626,7 @@ def pack_set_adc_enabled_channels_cmd(object_id: bytearray) -> bytearray: @brief This function packs the command to enable or disable channels of the ADC. @param object_id The object id of the PLOC supervisor handler. """ - ch = int(input("Specify ch:")) + ch = int(input("Specify ch: 0x"), 16) command = bytearray() command = object_id + struct.pack("!I", SupvActionIds.SET_ADC_ENABLED_CHANNELS) command = command + struct.pack("!H", ch)