diff options
Diffstat (limited to 'gpspoller.py')
| -rwxr-xr-x[-rw-r--r--] | gpspoller.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gpspoller.py b/gpspoller.py index 48105ad..45d0499 100644..100755 --- a/gpspoller.py +++ b/gpspoller.py @@ -58,7 +58,10 @@ class GpsPoller(threading.Thread): print "caught serial error"
try:
if line[0:6] =='$GPGSV':
- self.satellites=string.atoi(datablock[3])
+ try:
+ self.satellites=string.atoi(datablock[3])
+ except:
+ self.satellites=0
if line[0:6] =='$GPGSA':
self.fix=string.atoi(datablock[2])
if line[0:6] == '$GPGGA':
|
