🐛 Fix JyersUI for LPC176x (#22745)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
tome9111991
2021-09-12 21:56:40 +02:00
committed by Scott Lahteine
parent 3ee27e7e35
commit a596faf4e5
4 changed files with 26 additions and 23 deletions

View File

@ -107,7 +107,7 @@ extern DefaultSerial1 USBSerial;
#error "LCD_SERIAL_PORT must be from 0 to 3. You can also use -1 if the board supports Native USB."
#endif
#if HAS_DGUS_LCD
#define SERIAL_GET_TX_BUFFER_FREE() MSerial0.available()
#define SERIAL_GET_TX_BUFFER_FREE() LCD_SERIAL.available()
#endif
#endif

View File

@ -46,6 +46,8 @@ public:
void end() {}
uint8_t availableForWrite(void) { /* flushTX(); */ return TX_BUFFER_SIZE; }
#if ENABLED(EMERGENCY_PARSER)
bool recv_callback(const char c) override;
#endif