lightware_grf_serial: disable flow control (#26575)

* lightware_grf_serial: disable flow control

This might fix serial comms with the Lightware sensor.

* update sf45 to disable hw flow control

Signed-off-by: dirksavage88 <dirksavage88@gmail.com>

---------

Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
Co-authored-by: dirksavage88 <dirksavage88@gmail.com>
This commit is contained in:
Julian Oes
2026-02-25 18:51:49 -05:00
committed by GitHub
co-authored by dirksavage88
parent 4a4c15765c
commit ce564b4448
2 changed files with 3 additions and 3 deletions
@@ -256,8 +256,8 @@ void GRFLaserSerial::Run()
/* clear ONLCR flag (which appends a CR for every LF) */
uart_config.c_oflag &= ~ONLCR;
/* no parity, one stop bit */
uart_config.c_cflag &= ~(CSTOPB | PARENB);
/* no parity, one stop bit, no hardware flow control */
uart_config.c_cflag &= ~(CSTOPB | PARENB | CRTSCTS);
unsigned speed = B115200;
@@ -253,7 +253,7 @@ void SF45LaserSerial::Run()
uart_config.c_oflag &= ~ONLCR;
/* no parity, one stop bit */
uart_config.c_cflag &= ~(CSTOPB | PARENB);
uart_config.c_cflag &= ~(CSTOPB | PARENB | CRTSCTS);
unsigned speed = B921600;