nmea_gps: remove incorrect comments in python examples

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson 2016-08-26 21:13:09 -06:00 committed by Noel Eck
parent 4a8ddc10ad
commit 372b83fbed
2 changed files with 1 additions and 4 deletions

View File

@ -42,8 +42,6 @@ def exitHandler():
atexit.register(exitHandler)
signal.signal(signal.SIGINT, SIGINTHandler)
# Every second, sample the NMEAGPS and output the measured lux value
# loop, dumping NMEA data out as fast as it comes in
while (sensor.dataAvailable(5000)):
sys.stdout.write(sensor.readStr(256))

View File

@ -42,11 +42,10 @@ def exitHandler():
atexit.register(exitHandler)
signal.signal(signal.SIGINT, SIGINTHandler)
# Every second, sample the NMEAGPS and output the measured lux value
# loop, dumping NMEA data out as fast as it comes in
while (True):
if (sensor.dataAvailable(0)):
sys.stdout.write(sensor.readStr(256))
else:
time.sleep(.1)