• Ok, I removed the data event.

    Now, on connecting I get a lot of garbage, something like:

    ▒ ▒ ▒▒''▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒' ▒ ▒ ▒ ▒▒▒'▒' ▒▒'▒▒▒▒▒▒'
    ▒▒▒'▒▒'   ▒ ▒ ▒▒▒'   ▒▒'   ▒ ▒ ▒▒▒'   ▒▒'   ▒ ▒ ▒▒▒'   ▒▒'   ▒ ▒ ▒▒▒'   ▒▒'
    :▒▒▒▒'
    
    

    I also modified the try/catch block like this:

    try{
          LoopbackB.setConsole();
        } catch(e){
          USB.write("LoopbackB.setConsole(): " + e.type + " " + e.message + " " + e.stack);
        }
    

    and on connecting putty, the IDE shows the "setDeviceClockCmd" error, so it's still there.

About

Avatar for César @César started