Skip to content

cec_client converts device address B to zero. It uses atoi() which does not know Hex #480

@cayfordb

Description

@cayfordb

COmmands that take an argument of the Logical Address, 0-F, fail when the address is A-F, because the code to parse the command uses atoi(). atoi() is expecting a decimal number, not Hex. So "name 0" works, giving the TV name, "name 4" works giving the name of device 4. I have a device B, happens to be an Apple TV. BUt "name b" gives the results of "name 0".

If there is an atoh() (ascii to hex), that would probably fix it. There are 14 cases of "atio()" in ceclient.cpp.

I can use the tx command to send actual hex, so its not too hard to get around this. But the cecclient commands are easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions