I changed that because idx will always been greater than -1 after the first loop because it's get added the value of bufIdx.
The output now is a very low number of idx, basically every bit of data received. The fps count jumps way up to over 200. See the example output below:
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 changed that because idx will always been greater than -1 after the first loop because it's get added the value of bufIdx.
The output now is a very low number of idx, basically every bit of data received. The fps count jumps way up to over 200. See the example output below: