not solution but maybe workaround or thing to check - you can retype the array as Uint8Array in place (they share same memory) and see how that one gets written or check how it compares to 'bad' file you have.
>var d8 = new Uint8Array(d.buffer)
or even check d.buffer - that will be probably the same byte array as d8 would be
Much better, file length matches the buffer-s length. First couple of bytes match. I think all I need is read back on the computer.
© Espruino, powered by microcosm.
Report a problem