Fix #166: "While off" redstone port value was being ignored

Due to bad bitshift arithmetic. Whee!