if (+charDecimal == 171 && bufferLength == 10) {
I'd call this highly optimistic, you would simply write
if (bufferLength == 10) {
If you're out of sync for any reason there would be no more measurements, in both code variants.
@maze1980 started
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'd call this highly optimistic, you would simply write
If you're out of sync for any reason there would be no more measurements, in both code variants.