Skip to content

Commit

Permalink
fixed logger
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeg committed Dec 7, 2016
1 parent 99e6009 commit 826e411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gpslib.py
Expand Up @@ -39,7 +39,7 @@ def connect(self, device, speed):
try:
self.port = serial.Serial(device, speed)
except Exception as e:
log("GPS: %s" % e)
self.log("GPS: %s" % e)
return False

self.reader = pynmea2.NMEAStreamReader()
Expand Down Expand Up @@ -76,6 +76,6 @@ def loop(self):
self.readings['lon_dir'] = msg.lon_dir
self.readings['time'] = msg.timestamp
except Exception, e:
log("GPS: %s" % e)
self.log("GPS: %s" % e)
except Exception, e:
log("GPS: %s" % e)
self.log("GPS: %s" % e)

0 comments on commit 826e411

Please sign in to comment.