-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fix Getting Dimmer Max Value #1561
Fix Getting Dimmer Max Value #1561
Conversation
This is failing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment.
What's the error you get with make check?
Is the error when I am up to date with origin/master (and for this branch as well) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kecramer ,
Looking at this a bit more, please can you make a GenericGet and Handle equivalent to GenericGetU32/_HandleU32Response for U16 and change this and GetDMXAddress to use it please.
It, and the GetU8 and U32 variants should also all have the CheckCallback line:
if (CheckCallback(error, callback))
return false;
Thanks @kecramer . Sorry I missed it before, but could you switch SetDMXAddress to use the new GenericSetU16 you've very sensibly added. |
Ah good point, definitely missed that one. Let me know if you have any other comments. |
Well in fairness I didn't initially suggest even making a generic set as I'd missed the fact the brightness would have a set too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this bugfix and the related tidying.
Dimmer max is a single 16 bit value, not an 8 bit.