Default debug serial port



  • Is there a way to change the debug serial port in 2.1b code?

    In using a ARM M0, the serial port defaults to the USB port... I would like to reroute to Serial or Serial1

    Thanks


  • Hardware Contributor

    in MyHwSAMD.h
    you can try to change MY_SERIALDEVICE define
    you may also need to check the variant files in samd arduino files if sercom, serial and pins are ok.



  • Thanks... Unclear on why I did not see that when I looks for something like that...

    Made these changes... added issue 707 to development branch

    from:

    #define MY_SERIALDEVICE SerialUSB
    

    to:

    #ifndef MY_SERIALDEVICE
    #define MY_SERIALDEVICE SerialUSB
    #endif
    

  • Admin

    By setting MY_SERIALDEVICE you will reroute everything to the other serial port, not only debug messages.



  • @tbowmo thanks... works just as expected.....


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.