summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-03 20:27:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-03 20:27:24 +0000
commitf2971832fe84c34e53ec737eddab4732af5405a6 (patch)
treeb064ada4d1a7d1cf1cb86ef39dd0be3fcf132906 /gpsfake
parent1d634dc1bb21676ee4a38c6103bb42434641a3af (diff)
downloadgpsd-f2971832fe84c34e53ec737eddab4732af5405a6.tar.gz
Fix compile error when all of SiRF, Garmin, and TSIP are disables.
Also, fix gpsfake's ability to handle SiRF logs.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsfake b/gpsfake
index a85f13cc..9cacdf1c 100755
--- a/gpsfake
+++ b/gpsfake
@@ -64,13 +64,13 @@ try:
leader = '$';
legend = "gpsfake: line %d "
textual = 1
- elif logdata[0] == 0xa0:
+ elif logdata[0] == '\xa0':
print "gpsfake: interpreting as SiRF-II binary packets"
- leader = 0xa0
+ leader = '\xa0'
legend = "gpsfake: packet %d"
textual = 0
else:
- print "gpsfake: unknown log type, can't handle it!"
+ print "gpsfake: unknown log type (not NMEA or SiRF) can't handle it!"
logdata = None
if logdata: