MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / readLine

Method readLine

lib/usb/serial.cc:278–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278std::string SerialPort::readLine()
279{
280 std::string s;
281
282 for (;;)
283 {
284 uint8_t b = readByte();
285 if (b == '\r')
286 continue;
287 if (b == '\n')
288 return s;
289
290 s += b;
291 }
292}
293
294std::unique_ptr<SerialPort> SerialPort::openSerialPort(const std::string& path)
295{

Callers 7

sendrecvMethod · 0.45
doCommandXMethod · 0.45
getRotationalPeriodMethod · 0.45
testBulkWriteMethod · 0.45
writeMethod · 0.45
readCsvFunction · 0.45
test_csvreaderFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_csvreaderFunction · 0.36