zoom control

PaulS:
Why? The ! in there says to do something if the switch is not pressed. Presumably that something results in the switch becoming pressed.

When you presume, you make an ... no, that doesn't quite work here. Maybe the code is right and the hardware setup is such that it has the intended effect. More likely IMO it's a coding bug. Either way, I think it would be worth checking.