Browse Source

Update MarlinCore.cpp

pull/38/head
X-Dron 4 years ago
parent
commit
0196149b59
  1. 10
      Marlin/src/MarlinCore.cpp

10
Marlin/src/MarlinCore.cpp

@ -988,11 +988,11 @@ void setup() {
uint32_t serial_connect_timeout = millis() + 1000UL;
while (!MYSERIAL0 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
#if HAS_MULTI_SERIAL
#if ENABLED(MKS_WIFI)
MYSERIAL1.begin(MKS_WIFI_BAUDRATE);
#else
MYSERIAL1.begin(BAUDRATE);
#endif
#if ENABLED(MKS_WIFI)
MYSERIAL1.begin(MKS_WIFI_BAUDRATE);
#else
MYSERIAL1.begin(BAUDRATE);
#endif
serial_connect_timeout = millis() + 1000UL;
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
#endif

Loading…
Cancel
Save