From 18e644af9ce08cd3b4f0f4c2f6d36ff40bc25b2a Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Thu, 26 Jul 2018 15:41:13 -0700 Subject: gpssim.py: pep8 cleanup. Note the program pep8 is now called pycodestyle --- gpssim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpssim.py b/gpssim.py index 0969fc76..51319812 100644 --- a/gpssim.py +++ b/gpssim.py @@ -191,6 +191,7 @@ class gpssim(object): # devices, but the point of the architecture is so that we could simulate # others - SirF, Evermore, whatever. + MPS_TO_KNOTS = 1.9438445 # Meters per second to knots @@ -305,6 +306,7 @@ class NMEA(object): # The very simple main line. + if __name__ == "__main__": try: gpssim(NMEA).filter(sys.stdin, sys.stdout) -- cgit v1.2.1