Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
raspberry-pi
sense-hat
Commits
a0a0f690
Commit
a0a0f690
authored
Jan 08, 2019
by
Rousseau Vincent
Browse files
Add flush to not lose data
parent
fb1278bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
environmental_sensors.py
View file @
a0a0f690
...
...
@@ -50,6 +50,7 @@ try:
while
(
True
):
writer
.
writerow
(
get_data
())
csvfile
.
flush
()
if
(
current_month
!=
datetime
.
now
().
month
):
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment