travisgoodspeed / loraham

Ham radio protocols and Arduino examples for LoRa on 70cm.
Other
269 stars 28 forks source link

gateway should wait a little bit before opening serial #15

Open sharph opened 7 years ago

sharph commented 7 years ago

This will allow the PocketCHIP to boot when connected

akadamson commented 7 years ago

At least on the M0 arduino variants most people are putting in the following - from the arduinoZero pages at arduino.cc

"Opening and closing the Native port at a baudrate other than 1200bps will not reset the SAMD21. To use the serial monitor, and see what your sketch does from the beginning, you'll need to add few lines of code inside the setup(). This will ensure the SAMD21 will wait for the SerialUSB port to open before executing the sketch:

while (!Serial) ;"