mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +03:00 
			
		
		
		
	nmea_gps: remove incorrect comments in python examples
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
		| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jon Trulson
					Jon Trulson