Code: Select all
with open('update', 'w') as f: f.write(update); print('update stored'); machine.deepsleep(900*1000)
I tried allowing some extra time for the write to occur with
Code: Select all
with open('update', 'w') as f: f.write(update); time.sleep(1); print('update stored'); machine.deepsleep(900*1000)
If I move the write a few lines further up before the deeplseep it works properly but I don't understand why. Can anyone suggest what's going on?