From 372b83fbeda26635b86ea527fc00ea90e83a2958 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 26 Aug 2016 21:13:09 -0600 Subject: [PATCH] nmea_gps: remove incorrect comments in python examples Signed-off-by: Jon Trulson --- examples/python/nmea_gps.py | 2 -- examples/python/nmea_gps_i2c.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/python/nmea_gps.py b/examples/python/nmea_gps.py index 188b7ca9..7b54a733 100644 --- a/examples/python/nmea_gps.py +++ b/examples/python/nmea_gps.py @@ -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)) diff --git a/examples/python/nmea_gps_i2c.py b/examples/python/nmea_gps_i2c.py index 355c05d3..b91fc6de 100644 --- a/examples/python/nmea_gps_i2c.py +++ b/examples/python/nmea_gps_i2c.py @@ -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) +