Closed mriscoc closed 3 years ago
In bugfix and the next release LCD serial ports are now set with LCD_SERIAL_PORT with their own LCD_BAUDRATE
eg
#if HAS_DGUS_LCD
#define LCD_SERIAL_PORT 3
#define LCD_BAUDRATE 115200
So I'm afraid this is unnecessary going forward.
Ok, but in current bugfix branch the SERIAL1 is yet using BAUDRATE
file: Marlin/Marlin/src/MarlinCore.cpp
#if HAS_MULTI_SERIAL && !HAS_ETHERNET
MYSERIAL1.begin(BAUDRATE);
serial_connect_timeout = millis() + 1000UL;
while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
#endif
SERIAL_ECHOLNPGM("start");
How can I currently define a different baud for the SERIAL1?
Thanks.
A lot of modern controller use serial port -1 (which is baudrate less) so baudrate only applies to serial ports 0-7 (depending on controller) If its not for communication with a host it will not be using serial_port or serial_port_1 but a new name like the LCD_SERIAL_PORT example with its independent baud rates.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
The DWIN display on Ender 3v2 use the SERIAL1, when the BAUDRATE define is changed to 250000 baud the display can't communicate with the mainboard. A simple solution is making the BAUDRATE for the SERIAL1 independent from SERIAL0 defining a new constant BAUDRATE1. I propose this patch: