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) +