-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from peternewman/patch-1
Untested fix to ensure we act on vendorcast/broadcast mute/unmute
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63aa0e8
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, I have just spotted this issue (failure to unmute to broadcast address) and was about to tell you about it when I found this commit.
However, having fixed it in my own code, I believe the patch contains excessive logic.
Firstly, the test on lines 525 & 543
is already performed (using negative logic) near the start of the DMXSerialClass2::tick() function, we never even get to these lines if the test is false
Secondly, there is no point in populating the _rdm.packet.Data and DataLength if we are not sending a response, thus instead of
I believe we should have
(and obviously the same change to the E120_DISC_MUTE branch.)
63aa0e8
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 @g0uus ,
Your comment will probably get more visibility if you comment in #10 or #13 .
Well spotted, I'd agree with that review. Please feel free to open a pull request to fix my rather ropy code. I was mostly concentrating on correcting the initial suggestion in the bug report.
I'm still hoping to try and find some time to add checks to the OLA RDM tests to validate these code changes for real.
63aa0e8
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.