adc channel input in hex

This commit is contained in:
Jakob Meier 2022-04-22 14:21:08 +02:00
parent 45470f8c05
commit 6d80ad7476
1 changed files with 1 additions and 1 deletions

View File

@ -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)