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

Function SerialIf_CanReadLine

src/interface/SerialInterface.cpp:154–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool 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
169qint64 SerialIf_IsDataAvailable()
170{

Callers 2

ProcessGRBL1_1Method · 0.85
ProcessGRBL2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected