|
|
@ -880,15 +880,10 @@ void setup() {
|
|
|
|
|
|
|
|
|
|
|
|
#if NUM_SERIAL > 0
|
|
|
|
#if NUM_SERIAL > 0
|
|
|
|
MYSERIAL0.begin(BAUDRATE);
|
|
|
|
MYSERIAL0.begin(BAUDRATE);
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
|
|
|
MYSERIAL1.begin(BAUDRATE);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if NUM_SERIAL > 0
|
|
|
|
|
|
|
|
uint32_t serial_connect_timeout = millis() + 1000UL;
|
|
|
|
uint32_t serial_connect_timeout = millis() + 1000UL;
|
|
|
|
while (!MYSERIAL0 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
|
|
|
while (!MYSERIAL0 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
|
|
|
MYSERIAL1.begin(BAUDRATE);
|
|
|
|
serial_connect_timeout = millis() + 1000UL;
|
|
|
|
serial_connect_timeout = millis() + 1000UL;
|
|
|
|
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
|
|
|
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|