Update serial-read-write.py

del whitespace
This commit is contained in:
Mike Barela 2018-08-08 17:31:43 -04:00 committed by GitHub
parent 3b900f20c5
commit b523aa8112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ while True:
if data is not None: # Data was received if data is not None: # Data was received
output = "%0.1f\t%d\t%0.1f\r\n" % (time.monotonic(), output = "%0.1f\t%d\t%0.1f\r\n" % (time.monotonic(),
cpx.light, cpx.temperature) cpx.light, cpx.temperature)
uart.write(output) # Print to serial uart.write(output) # Print to serial
time.sleep(1.0) time.sleep(1.0)