MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / _read

Method _read

libraries/AP_Scripting/AP_Scripting_SerialDevice.cpp:114–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114ssize_t AP_Scripting_SerialDevice::Port::_read(uint8_t *buffer, uint16_t count)
115{
116 WITH_SEMAPHORE(sem);
117 return readbuffer != nullptr ? readbuffer->read(buffer, count) : -1;
118}
119
120uint32_t AP_Scripting_SerialDevice::Port::_available()
121{

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected