You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • The only problem you have is that when the setTimeout fires, it doesn't automatically set timer to undefined.

    If you did:

    timer = setTimeout(function () {// trigger relay: OFF
       timer = undefined;

    it would probably fix it?


Avatar for Gordon @Gordon started