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

Function SerialIf_IsDataAvailable

src/interface/SerialInterface.cpp:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169qint64 SerialIf_IsDataAvailable()
170{
171 if(m_Interface == IF_SERIAL)
172 {
173 return m_serialPort.bytesAvailable();
174 }
175 else if(m_Interface == IF_ETHERNET)
176 {
177 return m_tcpSocket.bytesAvailable();
178 }
179
180 // No valid interface
181 return 0;
182}
183
184QByteArray SerialIf_ReadLine()
185{

Callers 1

GrIP_UpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected