@user113695 it is contiguous. I tested it myself. I think your mistake is coming from this part:
var nlines = c.sum(fb.length, E.getAddressOf(E.toString(fb),true));
Try this instead:
var flatstring = E.toString(fb); var nlines = c.sum(fb.length, E.getAddressOf(flatstring,true));
Not exactly sure why your version doesn't work, will look into it.
@d3nd3-o0 started
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.
@user113695 it is contiguous. I tested it myself. I think your mistake is coming from this part:
Try this instead:
Not exactly sure why your version doesn't work, will look into it.