add sanity check to GPS module to stop it wasting memory if no newline is received