Fix inline AnycubicSerial method
This commit is contained in:
parent
6027055695
commit
2119e19bff
|
@ -131,10 +131,10 @@ const char newSucc[] PROGMEM = "OK";
|
||||||
#define ANYCUBIC_SERIAL_ECHO(x) ANYCUBIC_SERIAL_PROTOCOL(x)
|
#define ANYCUBIC_SERIAL_ECHO(x) ANYCUBIC_SERIAL_PROTOCOL(x)
|
||||||
|
|
||||||
FORCE_INLINE void AnycubicSerialprintPGM(const char *str) {
|
FORCE_INLINE void AnycubicSerialprintPGM(const char *str) {
|
||||||
char ch=pgm_read_byte(str);
|
char ch = pgm_read_byte(str);
|
||||||
while (ch) {
|
while (ch) {
|
||||||
AnycubicSerial.write(ch);
|
AnycubicSerialClass::write(ch);
|
||||||
ch=pgm_read_byte(++str);
|
ch = pgm_read_byte(++str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue