not necesarily, but you kept 4 flags indicating somewhat the same : mode == state and a 3 flags for ledstate. Ledstates which implicit follows from mode!
Is some sort of redundancy, removing it makes code more straightforward.
not necesarily, but you kept 4 flags indicating somewhat the same : mode == state and a 3 flags for ledstate. Ledstates which implicit follows from mode!
Is some sort of redundancy, removing it makes code more straightforward.