DC Motor and Potentiometer positioning

There's a difference between bit wise OR | and (no pun intended) logical OR ||