diff --git a/gsmHat/gsmHat.py b/gsmHat/gsmHat.py index 30ac43f..e5305a4 100755 --- a/gsmHat/gsmHat.py +++ b/gsmHat/gsmHat.py @@ -344,7 +344,7 @@ class GSMHat: self.__logger.debug('New GPS Data:') match = re.findall(self.regexGetAllValues, self.__serData) rawData = match[0][1].split(',') - if len(rawData) == 21: + if len(rawData) >= 21: newGPS = GPS() goodPosition = True @@ -773,4 +773,4 @@ class GSMHat: # Let other Threads also do their job time.sleep(0.1) - self.__logger.info('Worker ended') \ No newline at end of file + self.__logger.info('Worker ended')