]> oss.titaniummirror.com Git - rgblamp.git/commit
Rocker switch off condition is both inputs high
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 17:35:26 +0000 (10:35 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 17:35:26 +0000 (10:35 -0700)
commit77bec8ca2aa7d464cb5d3034a497e0ff8933864a
tree8cf77664289c541a85b81871d2ae087abe265941
parent663ff2dcbae14365e5b53bf6c6c7665efacb7c61
Rocker switch off condition is both inputs high

Before 09441b496c6b40be151e4e655572cb37518e7225, the logic used "% 3",
which effectively converted 0b11 input to 0.  Since the mod operation
is slow and code expensive, it was removed.  Therefore the off condition
state has changed to 0b11.
btn.h