So I've been trying to do a firmware thing for this, where certain Espruino builds would automatically save and load vardumps made with jsfSaveToFlash (I intend on making a format with a timestamp and maybe a dump of the current Graphics state?) on load calls, but I can't seem to figure it out - I save the vardump and load it with the same js*SoftKill and js*SoftInit things as the real save and load do, but it doesn't seem to load the variables, and instead just run an empty instance, as if there was no loading done at all. @Gordon Can you help me figure out what's wrong, and maybe tell me if something with a concept like this would be merged?
Source code: https://github.com/TheGLander/Espruino/tree/suspend-runtime
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So I've been trying to do a firmware thing for this, where certain Espruino builds would automatically save and load vardumps made with
jsfSaveToFlash
(I intend on making a format with a timestamp and maybe a dump of the current Graphics state?) onload
calls, but I can't seem to figure it out - I save the vardump and load it with the samejs*SoftKill
andjs*SoftInit
things as the realsave
andload
do, but it doesn't seem to load the variables, and instead just run an empty instance, as if there was no loading done at all.@Gordon Can you help me figure out what's wrong, and maybe tell me if something with a concept like this would be merged?
Source code: https://github.com/TheGLander/Espruino/tree/suspend-runtime