fix possible error on Wichro if too much time
If time is more than 420 seconds, it will be greater than int and will crash. This is not typical usage at all, but can happen if someone clicks on capture and then 4 minutes later someone "touch" a photocell. program will crash. Put as long or do a try/catch. For encoderPTcapture a long will be better