|
|
@ -984,15 +984,19 @@ void setup() { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
MYSERIAL0.begin(USB_BAUDRATE); |
|
|
|
uint32_t serial_connect_timeout = millis() + 1000UL; |
|
|
|
while (!MYSERIAL0 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ } |
|
|
|
#if HAS_MULTI_SERIAL |
|
|
|
MYSERIAL0.begin(BAUDRATE); |
|
|
|
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); |
|
|
|
serial_connect_timeout = millis() + 1000UL; |
|
|
|
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ } |
|
|
|
#endif |
|
|
|
SERIAL_ECHO_MSG("start"); |
|
|
|
serial_connect_timeout = millis() + 1000UL; |
|
|
|
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ } |
|
|
|
#endif |
|
|
|
SERIAL_ECHO_MSG("start"); |
|
|
|
|
|
|
|
#if BOTH(HAS_TFT_LVGL_UI, USE_WIFI_FUNCTION) |
|
|
|
mks_esp_wifi_init(); |
|
|
|