I have refactored some code to save memory using Typed Arrays and have come in to a problem which I have managed to replicate using the following code:
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.
I have refactored some code to save memory using Typed Arrays and have come in to a problem which I have managed to replicate using the following code:
I get the following Output for the second console.log (the first is as expected):
As you can see its a bit of a mess - some values missing, others repeated.
I haven't exceeded the maximum value for a Uint32 ( 4,294,967,295).
Any ideas?