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

Function SerialIf_Read

src/interface/SerialInterface.cpp:199–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199qint64 SerialIf_Read(quint8 *data, qint64 max)
200{
201 if(m_Interface == IF_SERIAL)
202 {
203 return m_serialPort.read((char*)data, max);
204 }
205 else if(m_Interface == IF_ETHERNET)
206 {
207 return m_tcpSocket.read((char*)data, max);
208 }
209
210 // Return empty array
211 return 0;
212}

Callers 1

GrIP_UpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected