HAL/serial followup
This commit is contained in:
@ -113,7 +113,11 @@ static void sendLine_P(PGM_P str) {
|
||||
AnycubicTFTClass::AnycubicTFTClass() {}
|
||||
|
||||
void AnycubicTFTClass::OnSetup() {
|
||||
ANYCUBIC_LCD_SERIAL.begin(115200);
|
||||
#ifndef LCD_BAUDRATE
|
||||
#define LCD_BAUDRATE 115200
|
||||
#endif
|
||||
LCD_SERIAL.begin(LCD_BAUDRATE);
|
||||
|
||||
SENDLINE_DBG_PGM("J17", "TFT Serial Debug: Main board reset... J17"); // J17 Main board reset
|
||||
ExtUI::delay_ms(10);
|
||||
|
||||
|
@ -428,7 +428,11 @@ namespace ExtUI {
|
||||
* it and translate into ExtUI operations where possible.
|
||||
*/
|
||||
inbound_count = 0;
|
||||
LCD_SERIAL.begin(500000);
|
||||
|
||||
#ifndef LCD_BAUDRATE
|
||||
#define LCD_BAUDRATE 500000
|
||||
#endif
|
||||
LCD_SERIAL.begin(LCD_BAUDRATE);
|
||||
|
||||
// Signal init
|
||||
write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
|
||||
|
Reference in New Issue
Block a user