Wait for 10 consecutive seconds with invalid data , to reset LD rotary buffer.
Do not reset the buffer if no new data has been inserted since last reset.
Optimize again the nmea logger .  This is called every time we receive an NMEA string!