Commit 1960314f authored by Gary E. Miller's avatar Gary E. Miller 💬
Browse files

gps-log: fix fatal typo, add more output when verbose

parent e6f41156
......@@ -60,7 +60,7 @@ parser.add_argument('-o', '--once',
help="log one line, then exit")
parser.add_argument('-w', '--wait',
default=5,
default=[5],
dest='wait',
help="wait WAIT seconds after each log line, default 5",
nargs=1,
......@@ -77,6 +77,10 @@ parser.add_argument('-V', '--version',
args = parser.parse_args()
if args.verbose:
print("gps-log: arguments:")
print(args)
if args.logfile:
# log to logfile
try:
......@@ -117,6 +121,9 @@ class GpsPoller(threading.Thread):
self.gpsd.satellites_used))
if __name__ == '__main__':
if args.verbose:
print("gps-log: creating poll thread")
gpsp = GpsPoller() # create the thread
try:
gpsp.start() # start it up
......@@ -159,4 +166,4 @@ if __name__ == '__main__':
gpsp.join()
if args.verbose:
print("gps-log Done -- Exiting.")
print("gps-log: Done -- Exiting.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment