Browse Source

Fix Creality DWIN - Broken (bool)Serial ? (#21272)

Co-authored-by: ellensp <ellensp@hotmsil.com>
vanilla_fb_2.0.x
ellensp 4 years ago
committed by GitHub
parent
commit
a94fa7b476
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/lcd/dwin/dwin_lcd.cpp

2
Marlin/src/lcd/dwin/dwin_lcd.cpp

@ -95,7 +95,7 @@ bool DWIN_Handshake(void) {
#endif
LCD_SERIAL.begin(LCD_BAUDRATE);
const millis_t serial_connect_timeout = millis() + 1000UL;
while (!LCD_SERIAL && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
while (!LCD_SERIAL.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
size_t i = 0;
DWIN_Byte(i, 0x00);

Loading…
Cancel
Save