I'm also struggling with the save()/restore() stuff. I would like the following set-up:
I can't figure out how to make this work. When the IDE does a reset() the saved variables are not loaded. The environment is literally empty. I tried to use load() at the start of my file, but it causes a reset also, and seems to have a pile of side-effects on the parsing of the remainder of the file. Any ideas?
© Espruino, powered by microcosm.
Report a problem