Fix Creality DWIN - Broken (bool)Serial ? (#21272)
Co-authored-by: ellensp <ellensp@hotmsil.com>
This commit is contained in:
parent
423c4e4636
commit
05a124930e
@ -95,7 +95,7 @@ bool DWIN_Handshake(void) {
|
|||||||
#endif
|
#endif
|
||||||
LCD_SERIAL.begin(LCD_BAUDRATE);
|
LCD_SERIAL.begin(LCD_BAUDRATE);
|
||||||
const millis_t serial_connect_timeout = millis() + 1000UL;
|
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;
|
size_t i = 0;
|
||||||
DWIN_Byte(i, 0x00);
|
DWIN_Byte(i, 0x00);
|
||||||
|
Loading…
Reference in New Issue
Block a user