mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-08 15:31:35 +08:00
Changed the default baudrate handling around a little to make it cleaner
This commit is contained in:
@@ -23,10 +23,6 @@ SerialImpl::SerialImpl(const char *port, uint32_t baudrate, ByteSize bytesize, P
|
||||
} else {
|
||||
_port[0] = 0;
|
||||
}
|
||||
|
||||
// Start off with a valid bitrate to make sure open can succeed
|
||||
if (_baudrate == 0) { _baudrate = 9600; }
|
||||
|
||||
}
|
||||
|
||||
SerialImpl::~SerialImpl()
|
||||
|
||||
Reference in New Issue
Block a user