summaryrefslogtreecommitdiff
path: root/ldr-counter.py
diff options
context:
space:
mode:
authorst33v <st33v@f3rr3t.com>2016-01-17 19:24:34 +1100
committerst33v <st33v@f3rr3t.com>2016-01-17 19:24:34 +1100
commit18359265339d87e99bf5309a818ccef046043718 (patch)
tree6c1a1ac668b89382f7a8306c6fe632ade0647ec1 /ldr-counter.py
parentba47a4cabdddfe9ef841188a74866c87a5603e4c (diff)
write timestamp plus readings to file
Diffstat (limited to 'ldr-counter.py')
-rwxr-xr-xldr-counter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldr-counter.py b/ldr-counter.py
index 85c980c..362ab55 100755
--- a/ldr-counter.py
+++ b/ldr-counter.py
@@ -62,7 +62,7 @@ def appendReading (ldrCount):
# write the data
f = open("ldr-readings.txt", "a")
- f.write(timestamp) # , ldrCount)
+ f.write(timestamp + ' ' + " ".join(map(str, ldrCount)) + '\n')
f.close()