arduino robot: ps2 mouse + pololu motor controller

PS2 mouse lib has no build-in timeouts. It waits for high / low values on clock / data pins in infinite while loops. If (maybe due to some noise from motors) clock or data pins stay in unexpected level, the code waits in loop.