diff options
Diffstat (limited to 'wim.py')
| -rwxr-xr-x | wim.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -101,15 +101,16 @@ while True: if not gpsfix: if gpsp.fix>1: gpsfix=True - outsock.sendto( "gpsstatus 1\n", (PD_IP, PD_PORT) ) + outsock.sendto( "gps status 1\n", (PD_IP, PD_PORT) ) if gpsfix: if gpsp.fix<2: gpsfix=False - outsock.sendto( "gpsstatus 0\n", (PD_IP, PD_PORT) ) + outsock.sendto( "gps status 0\n", (PD_IP, PD_PORT) ) check=gpsp.check() if check!=False: if debug==True: print "wim: received from gps",check[0],check[1] + outsock.sendto("gps data"+str(check[0])+" "+str(check[1])+"\n",(PD_IP, PD_PORT) ) pos=latLng(check[0],check[1]) posChanged=True if posChanged: |
