• Hi, all

    We just got our Espruino board; it's currently running Espruino 1v40.
    The Serial Terminal in Chrome is great, but writing programs in the window to the right and clicking "Send to Espruino" results in some strange behavior. It report JavaScript errors that appear to be caused by characters in the code being dropped.

    Example:

        var l = false;
        setInterval(function() {
            l = !l;
            if (l) turnOn();
            if (!l) turnOff();
        }, 1000);
        
        function turnOn() {
          digitalWrite(LED1, 1);
              
          setTimeout(function () {
      	    digitalWrite(LED2, 1);
          }, 100);
          
          setTimeout(function () {
      	    digitalWrite(LED3, 1);
          }, 200);
        }
        
        function turnOff() {
          digitalWrite(LED1, 0);
          
          setTimeout(function () {
      	    digitalWrite(LED2, 0);
          }, 100);
          
          setTimeout(function () {
      	    digitalWrite(LED3, 0);
          }, 200);
        }
    
    Results in:
    
        ERROR: Function not found! Skipping. at line 2 col 7
        digitalWrte(LED3, 0);
    

    I'm not crazy! That 'i' was definitely there. Has anyone else seen this?
    Is it already fixed in another build of Espruino?

About

Avatar for IdeaShaker @IdeaShaker started