diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-05-05 12:22:57 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-05-05 12:22:57 +0100 |
| commit | d0096f9d675c4deb04981d91fe3645c4ea6dde05 (patch) | |
| tree | a8040d6b0c2d385fe57ee5d89ca0f18f3d93f78d | |
| parent | 421cdd72c6395719b56191c187d9f2ba31664670 (diff) | |
fixed serial bug
| -rw-r--r-- | timelabtest.xml | 2 | ||||
| -rwxr-xr-x | tomorrowtheground.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/timelabtest.xml b/timelabtest.xml index 03e1af9..b6497cc 100644 --- a/timelabtest.xml +++ b/timelabtest.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" ?> -<tomorrowtheground gpsdevice="/dev/ttO0"> +<tomorrowtheground gpsdevice="/dev/ttyO0"> <gps> <scale file="TimelabTestAreaGRADIENT.png" ll1="51.043293,3.737025" ll2="51.042154,3.739584" freq="1.0" command="cc01"> </scale> diff --git a/tomorrowtheground.py b/tomorrowtheground.py index 8ab6383..857ff8e 100755 --- a/tomorrowtheground.py +++ b/tomorrowtheground.py @@ -52,9 +52,8 @@ import gpspoller gpsp="" try: - if len(sys.argv)>1: - gpsp = GpsPoller(doc.gpsdevice) - gpsp.start() + gpsp = GpsPoller(doc.gpsdevice) + gpsp.start() except: print "gps device not found" |
