adc channel input in hex
This commit is contained in:
parent
45470f8c05
commit
6d80ad7476
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user