Fix PRU Delayed Read
Created by: kmartin36
Only reading R31 once per loop. If R31 changes during the instructions between the reads, it creates the possibility of missing transitions. Also checking for invalid transitions where both channels transition at the same time.