Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cayfordb opened this issue Nov 17, 2019 · 1 comment

Comments

@cayfordb
Copy link

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.

@cayfordb
Copy link
Author

cayfordb commented Mar 30, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant