I had the following defensive code that caused the issue. It does not work because 'f.read(0) ' is a typed array and condition failed to assign a value.
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.
Thank you! @Gordon
I had the following defensive code that caused the issue. It does not work because 'f.read(0) ' is a typed array and condition failed to assign a value.
This works perfectly fine