Add delay for writing files
This commit is contained in:
parent
104d39b4c6
commit
4e7fa44301
|
@ -142,6 +142,9 @@ def session_post(cid):
|
||||||
time.sleep(light_time / 1000)
|
time.sleep(light_time / 1000)
|
||||||
power.lights_off()
|
power.lights_off()
|
||||||
|
|
||||||
|
status = WRITING
|
||||||
|
time.sleep(max(5 - light_time / 1000, 1))
|
||||||
|
|
||||||
status = DOWNLOADING
|
status = DOWNLOADING
|
||||||
download.download_all_photos(path)
|
download.download_all_photos(path)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user