Yes, now it is fixed, thanks. I hoped it would help with memory fragmentation in my case so that E.toString() would work on the font but it wasn't enough. There is probably too much fragmentation already so even without this locked/leaked SPI variable(s) it doesn't work and still return undefined. Also E.defrag() does not help. The E.dumpFragmentation() is useful as it shows the buffer allocated by Graphics.createArrayBuffer is not created as flat string. After deleting fnt variable flat strings are still there and areas freed (marked in blue) are used by normal variables '#' not '='
So E.toString() tries to do a copy and fails as there is no continuous space.
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.
Yes, now it is fixed, thanks. I hoped it would help with memory fragmentation in my case so that E.toString() would work on the font but it wasn't enough. There is probably too much fragmentation already so even without this locked/leaked SPI variable(s) it doesn't work and still return undefined. Also E.defrag() does not help. The
E.dumpFragmentation()
is useful as it shows the buffer allocated by Graphics.createArrayBuffer is not created as flat string. After deleting fnt variable flat strings are still there and areas freed (marked in blue) are used by normal variables '#' not '='So E.toString() tries to do a copy and fails as there is no continuous space.
1 Attachment