Skip to content

Commit 6d97cbb

Browse files
committed
FIX DWIN_CREALITY_LCD_JYERSUI forLPC1769
Hello do not know if I have the permission for this fix here a fix to get work JyersUI with LPC1769 works well on my SKR E3 Turbo should someone test with stock motherboard
1 parent bcfaf39 commit 6d97cbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Marlin/src/lcd/e3v2/jyersui/dwin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ CrealityDWINClass CrealityDWIN;
331331
(uint16_t)round(0b111111 * mesh_z_values[x][y] / (!viewer_asymmetric_range ? range : v_max)) << 5) | // green if mesh point value is positive
332332
min(0b11111, (((uint8_t)abs(mesh_z_values[x][y]) / 10) * 4))), // + blue stepping for every mm
333333
start_x_px, start_y_px, end_x_px, end_y_px);
334-
while (LCD_SERIAL.availableForWrite() < 32) { // wait for serial to be available without blocking and resetting the MCU
334+
while (LCD_SERIAL.available()) { // wait for serial to be available without blocking and resetting the MCU
335335
gcode.process_subcommands_now_P("G4 P10");
336336
planner.synchronize();
337337
}

Marlin/src/lcd/e3v2/jyersui/dwin_lcd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool DWIN_Handshake(void) {
9292
#endif
9393
LCD_SERIAL.begin(LCD_BAUDRATE);
9494
const millis_t serial_connect_timeout = millis() + 1000UL;
95-
while (!LCD_SERIAL && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
95+
while (!LCD_SERIAL.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
9696

9797
size_t i = 0;
9898
DWIN_Byte(i, 0x00);

0 commit comments

Comments
 (0)