From 2119e19bff477be2bcefcf9b7f50ff60fdccee32 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 21 Jul 2020 05:41:10 -0500 Subject: [PATCH] Fix inline AnycubicSerial method --- Marlin/src/lcd/extui/lib/anycubic/anycubic_serial.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/lcd/extui/lib/anycubic/anycubic_serial.h b/Marlin/src/lcd/extui/lib/anycubic/anycubic_serial.h index e7494d38ad..a568a50c98 100644 --- a/Marlin/src/lcd/extui/lib/anycubic/anycubic_serial.h +++ b/Marlin/src/lcd/extui/lib/anycubic/anycubic_serial.h @@ -131,10 +131,10 @@ const char newSucc[] PROGMEM = "OK"; #define ANYCUBIC_SERIAL_ECHO(x) ANYCUBIC_SERIAL_PROTOCOL(x) FORCE_INLINE void AnycubicSerialprintPGM(const char *str) { - char ch=pgm_read_byte(str); + char ch = pgm_read_byte(str); while (ch) { - AnycubicSerial.write(ch); - ch=pgm_read_byte(++str); + AnycubicSerialClass::write(ch); + ch = pgm_read_byte(++str); } }