mirror of
https://github.com/Civlo85/gsmHat.git
synced 2026-07-15 08:16:55 +00:00
Merge pull request #5 from ThinkTransit/master
Update gsmHat.py Some Waveshare devices return more than 21 data items for GPS data
This commit is contained in:
+2
-2
@@ -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')
|
||||
self.__logger.info('Worker ended')
|
||||
|
||||
Reference in New Issue
Block a user