python icon indicating copy to clipboard operation
python copied to clipboard

fix inconsistency between GPIO-wrd and GPIO-rd output

Open karamo opened this issue 2 years ago • 0 comments

in remote_hardware.py in onGPIOreceive(...): change line: f'Received RemoteHardware type={hw["type"]}, gpio_value={gpioValue} value={value}' to f'Received Remote_Hardware type={hw["type"]}, mask=0x{int(interface.mask):x} value=0x{int(value):x}'

Example output at gpio-wrb Writing GPIO mask 0x2000 with value 0x2000 to !93879b84

Output at gpio-rd before: Received Remote_Hardware type=READ_GPIOS_REPLY, gpio_value=8192 value=8192

after/with modification: Received Remote_Hardware type=READ_GPIOS_REPLY, mask=0x2000 value=0x2000

Note: 8192 ist the decimal representation of the (hex) 0x2000

karamo avatar Apr 01 '23 20:04 karamo