mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
nmea_gps: remove incorrect comments in python examples
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
4a8ddc10ad
commit
372b83fbed
@ -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))
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user