Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArduPilot/ardupilot
/ _available
Method
_available
libraries/AP_Scripting/AP_Scripting_SerialDevice.cpp:120–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
118
}
119
120
uint32_t AP_Scripting_SerialDevice::Port::_available()
121
{
122
WITH_SEMAPHORE(sem);
123
return readbuffer != nullptr ? readbuffer->available() : 0;
124
}
125
126
127
bool AP_Scripting_SerialDevice::Port::_discard_input()
Callers
nothing calls this directly
Calls
1
available
Method · 0.45
Tested by
no test coverage detected