diff options
| author | st33v <st33v@f3rr3t.com> | 2016-01-17 19:24:34 +1100 |
|---|---|---|
| committer | st33v <st33v@f3rr3t.com> | 2016-01-17 19:24:34 +1100 |
| commit | 18359265339d87e99bf5309a818ccef046043718 (patch) | |
| tree | 6c1a1ac668b89382f7a8306c6fe632ade0647ec1 /ldr-counter.py | |
| parent | ba47a4cabdddfe9ef841188a74866c87a5603e4c (diff) | |
write timestamp plus readings to file
Diffstat (limited to 'ldr-counter.py')
| -rwxr-xr-x | ldr-counter.py | 2 |
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() |
