Dimmers Control

shouldn't this :

while( dim[light] > 0 || dim[light] < 128 )

be

while( dim[light] > 0 && dim[light] < 128 )