Closed g0uus closed 6 years ago
See the discussion here https://github.com/mathertel/DmxSerial2/issues/18#issuecomment-430237661
In this case you probably want to add a comment saying what the old test was and maybe why it's been removed.
I commented out with a comment. https://github.com/mathertel/DmxSerial2/commit/66ed0cffcb398b8912e510eff7ae6efeff62503a
No effect on code size. I assume the compiler already removed them during optimization.
Thanks.
If the Arduino Compiler Warnings option is set to YES, the following warnings are generated -
The problem here is that
value
is declared asuint8_t
and can thus never be less thanDMXSERIAL_MIN_SLOT_VALUE
or greater thanDMXSERIAL_MAX_SLOT_VALUE
The fix is to simply remove or comment out the two if statements.