Ahh, that's interesting. What if you supply the file size in the argument as well? Does that help?
It might be because I'd expected that way of writing to be used mainly for logs or uploading from the Web IDE. Maybe I didn't consider that as a use-case.
It's a bit of a hack, but I guess for now you could just make the file one byte bigger and write to the address+1!
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.
Ahh, that's interesting. What if you supply the file size in the argument as well? Does that help?
It might be because I'd expected that way of writing to be used mainly for logs or uploading from the Web IDE. Maybe I didn't consider that as a use-case.
It's a bit of a hack, but I guess for now you could just make the file one byte bigger and write to the address+1!