diff options
Diffstat (limited to 'wim.py')
| -rwxr-xr-x | wim.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) ) |
