Skip to content

Comments

非常奇怪:当自定义波特率28800时,需要多设置一次B38400,才能生效。#1

Open
nicklgw wants to merge 1 commit intoRoverRobotics-forks:masterfrom
nicklgw:master
Open

非常奇怪:当自定义波特率28800时,需要多设置一次B38400,才能生效。#1
nicklgw wants to merge 1 commit intoRoverRobotics-forks:masterfrom
nicklgw:master

Conversation

@nicklgw
Copy link

@nicklgw nicklgw commented Sep 3, 2025

通过参考qtserialport的代码,才解决此Bug.

https://github.com/qt/qtserialport/blob/5.15/src/serialport/qserialport_unix.cpp

bool QSerialPortPrivate::setCustomBaudRate(qint32 baudRate, QSerialPort::Directions directions)
{
// XXX
// XXX
// XXX

**return setStandardBaudRate(B38400, directions);**

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant