Strange... I just checked with a Pixl and what's reported is an 8 bit unsigned value. Turns out char isn't always signed in C - first I knew about it :) I've just fixed this, but for the current build try if (rssi>127) rssi-=256;
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.
Hi, You could attach serial if you need to... http://www.espruino.com/Puck.js#serial-console
That's interesting - it could be to do with the power saving stuff. I've filed an issue for it at https://github.com/espruino/Espruino/issues/1605
Great
Strange... I just checked with a Pixl and what's reported is an 8 bit unsigned value. Turns out
char
isn't always signed in C - first I knew about it :) I've just fixed this, but for the current build tryif (rssi>127) rssi-=256;