| 102 | } |
| 103 | |
| 104 | QString SerialIf_GetError() |
| 105 | { |
| 106 | if(m_Interface == IF_SERIAL) |
| 107 | { |
| 108 | return m_serialPort.errorString(); |
| 109 | } |
| 110 | else if(m_Interface == IF_ETHERNET) |
| 111 | { |
| 112 | return m_tcpSocket.errorString(); |
| 113 | } |
| 114 | |
| 115 | return QString(""); |
| 116 | } |
| 117 | |
| 118 | qint64 SerialIf_Write(const QByteArray &data) |
| 119 | { |
no outgoing calls
no test coverage detected