diff options
author | Bernd Zeimetz <bernd@bzed.de> | 2010-04-22 02:29:57 +0200 |
---|---|---|
committer | Bernd Zeimetz <bernd@bzed.de> | 2010-04-22 03:20:02 +0200 |
commit | c486ce9325731e9da59b4d4e8411bf7fc858bd4e (patch) | |
tree | 0718207961be9d2adac49ea88c83fb51c793b9ae /gps/gps.py | |
parent | 0e5b93f7dacc5e67eaf964bfba1575e727a20c26 (diff) | |
download | gpsd-c486ce9325731e9da59b4d4e8411bf7fc858bd4e.tar.gz |
Return the length of the data in read().
The legth of the remaining data might be 0 if the data in the buffer
ends with \n.
Diffstat (limited to 'gps/gps.py')
-rwxr-xr-x | gps/gps.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -112,7 +112,7 @@ class gpscommon: sys.stderr.write("poll: data is %s\n" % repr(self.response)) self.received = time.time() # We got a \n-terminated line - return len(self.linebuffer) + return len(self.response) def send(self, commands): "Ship commands to the daemon." |