summaryrefslogtreecommitdiff
path: root/wim.py
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-05-18 19:20:40 +0100
committerTim Redfern <tim@eclectronics.org>2012-05-18 19:20:40 +0100
commitbe0a3f4b3f536e9cad405d7307324914f3284740 (patch)
treef78d1fd0f7345a51a5892d358914158a4845b25a /wim.py
parentc17065e4d6c38b6859340993618dd75232281d0f (diff)
dom st maps + fixed over verbose debug
Diffstat (limited to 'wim.py')
-rwxr-xr-xwim.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wim.py b/wim.py
index e8f6c78..0db569d 100755
--- a/wim.py
+++ b/wim.py
@@ -92,7 +92,7 @@ while True:
try:
data, addr = insock.recvfrom(128)
pos.parse(data)
- if debug:
+ if debug==True:
print "wim: received:",data
posChanged=True
except:
@@ -108,7 +108,7 @@ while True:
outsock.sendto( "gpsstatus 0\n", (PD_IP, PD_PORT) )
check=gpsp.check()
if check!=False:
- if debug:
+ if debug==True:
print "wim: received from gps",check[0],check[1]
pos=latLng(check[0],check[1])
posChanged=True
@@ -117,7 +117,7 @@ while True:
for layer in gpslayers:
r=layer.checkcoord(pos) #returns a message or None
if r!=None:
- if (debug):
+ if debug==True:
print "wim: sending:",str(r[0]),str(r[1])
#pd needs \n at end of message
outsock.sendto( str(r[0])+' '+str(r[1])+'\n', (PD_IP, PD_PORT) )