• 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 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.

    The explanation of FIFO_FULL is here https://github.com/espruino/Espruino/blo­b/master/src/jswrap_espruino.c#L702 "could be state transitions for setWatch"

  • Ah thanks, sorry about that. I didn't realize I forgot to link the actual page :(

    I'll see if I can jit this function and if that helps.

About

Avatar for fanoush @fanoush started