You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • it is safer to schedule it again via setTimeout after println returns.

    actually I did not check how setInterval is done, but I always had issues when code in setInterval run longer than the interval. Since the interpreter is single threaded it won't run the code again if it did not finish but maybe it runs again right after previous one ends not giving chance to any other code or idle loop to run? So maybe GC is not done or other intervals may not run (pinging watchdog in this case) etc?

  • So maybe GC is not done or other intervals may not run (pinging watchdog in this case) etc?

    nice, most probaby this was the case, I do have a watchdog that only needs 5 secs to fire, because the button on the dsd6 resets every 6 seconds or so, and I want to trigger it manually if needed.

About

Avatar for fanoush @fanoush started