Maybe it is good candidate to use the new JIT feature. Try to mark it with "jit" for it to execute faster. I think the FIFO_FULL in this case means the setWatch(sig, pin, {repeat:true, edge:"both"}); fires the sig method faster than it can execute. Or maybe the console.log there writes to output too much too quickly, then the "jit" would probably not help.
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.
Would save a bit of time if you would link the sniffing code directly but I guess it is about this https://www.espruino.com/Remote+Control+Sockets and the
sig(e)
function there.Maybe it is good candidate to use the new JIT feature. Try to mark it with
"jit"
for it to execute faster. I think the FIFO_FULL in this case means thesetWatch(sig, pin, {repeat:true, edge:"both"});
fires the sig method faster than it can execute. Or maybe the console.log there writes to output too much too quickly, then the "jit" would probably not help.The explanation of FIFO_FULL is here https://github.com/espruino/Espruino/blob/master/src/jswrap_espruino.c#L702 "could be state transitions for setWatch"