MCPcopy Create free account
hub / github.com/Schildkroet/Candle2 / SerialIf_OpenSerial

Function SerialIf_OpenSerial

src/interface/SerialInterface.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool SerialIf_OpenSerial(int protocol, QString portname, qint32 baud)
41{
42 m_serialPort.setPortName(portname);
43 m_serialPort.setBaudRate(baud);
44
45 m_Interface = IF_SERIAL;
46 m_Protocol = protocol;
47
48 return m_serialPort.open(QIODevice::ReadWrite);
49}
50
51bool SerialIf_OpenEth(QString ip, qint32 port)
52{

Callers 1

on_btnConnect_clickedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected