| 152 | } |
| 153 | |
| 154 | bool SerialIf_CanReadLine() |
| 155 | { |
| 156 | if(m_Interface == IF_SERIAL) |
| 157 | { |
| 158 | return m_serialPort.canReadLine(); |
| 159 | } |
| 160 | else if(m_Interface == IF_ETHERNET) |
| 161 | { |
| 162 | return m_tcpSocket.canReadLine(); |
| 163 | } |
| 164 | |
| 165 | // No valid interface |
| 166 | return false; |
| 167 | } |
| 168 | |
| 169 | qint64 SerialIf_IsDataAvailable() |
| 170 | { |
no outgoing calls
no test coverage detected