mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 11:38:56 +08:00
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:
co-authored by
dirksavage88
parent
4a4c15765c
commit
ce564b4448
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user