Skip to content

fix inconsistency between GPIO-wrd and GPIO-rd output #437

Description

@karamo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions