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

Remove unnecessary comarisons #17

Merged
merged 2 commits into from
Oct 27, 2018
Merged

Remove unnecessary comarisons #17

merged 2 commits into from
Oct 27, 2018

Conversation

g0uus
Copy link

@g0uus g0uus commented Oct 15, 2018

Hi Mathias,

This is the change discussed in Merge pull request #13 from peternewman/patch-1.

63aa0e8#commitcomment-30769229

Simple change to remove unnecessary if tests (because it is already performed by earlier code) and to expand scope of tests in body of the MUTE/UNMUTE actions such that we only initialise the return packet if we are going to send it.

Graham

Copy link
Contributor

@peternewman peternewman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a few minor style comments.

src/DMXSerial2.cpp Outdated Show resolved Hide resolved
src/DMXSerial2.cpp Outdated Show resolved Hide resolved
src/DMXSerial2.cpp Outdated Show resolved Hide resolved
src/DMXSerial2.cpp Outdated Show resolved Hide resolved
@mathertel mathertel merged commit d7812bc into mathertel:master Oct 27, 2018
@mathertel
Copy link
Owner

Thanks. good finding. saving 44 bytes!

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

Successfully merging this pull request may close these issues.

4 participants