At the moment, your interrupt handler assumes that interrupts can be caused only by the "A" encoder. You have to check P1IFG to determine whether you got a change at the A pins, or the B pins, or both.
↧