summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]gps.py0
-rwxr-xr-x[-rw-r--r--]gpspoller.py5
-rwxr-xr-x[-rw-r--r--]gpstest.py0
-rwxr-xr-x[-rw-r--r--]latLng.py0
-rwxr-xr-x[-rw-r--r--]layers.py0
-rwxr-xr-x[-rw-r--r--]xml2obj.py0
6 files changed, 4 insertions, 1 deletions
diff --git a/gps.py b/gps.py
index 336615c..336615c 100644..100755
--- a/gps.py
+++ b/gps.py
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':
diff --git a/gpstest.py b/gpstest.py
index 88c5198..88c5198 100644..100755
--- a/gpstest.py
+++ b/gpstest.py
diff --git a/latLng.py b/latLng.py
index f567371..f567371 100644..100755
--- a/latLng.py
+++ b/latLng.py
diff --git a/layers.py b/layers.py
index 603b60d..603b60d 100644..100755
--- a/layers.py
+++ b/layers.py
diff --git a/xml2obj.py b/xml2obj.py
index 5668ec8..5668ec8 100644..100755
--- a/xml2obj.py
+++ b/xml2obj.py