Added jitter protection in line detector
The program don't block when waiting to recive a message.
It cancels the recive progress if it haven't recived data in 2^16 cycles