summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-20 19:04:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-20 19:04:20 +0000
commitf828ece0a9a1ccb1c5699d25479ad3d8e2c64a34 (patch)
tree2c92e649a06980eda558f179fab13e4d6c3a7147 /gpscap.py
parent607f804cd1a681c720a6620061e2d280d9d9a2a6 (diff)
downloadgpsd-f828ece0a9a1ccb1c5699d25479ad3d8e2c64a34.tar.gz
Show PPS in the hardware table.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpscap.py b/gpscap.py
index d7632649..ade51afb 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -96,7 +96,10 @@ class GPSDictionary(ConfigParser.RawConfigParser):
if self.has_option(dev, "subtype"):
engine += " (" + self.get(dev, "subtype") + ")"
ofp.write("<td>%s</td>\n" % engine)
- ofp.write("<td>%s</td>\n" % self.get(dev, "interfaces"))
+ interfaces = self.get(dev, "interfaces")
+ if self.has_option(dev, "pps"):
+ interfaces += ",PPS"
+ ofp.write("<td>%s</td>\n" % interfaces)
tested = ""
if self.get(dev, "status") == "broken":
tested = "Broken"