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

Method device_available

libraries/AP_Scripting/AP_Scripting_SerialDevice.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83uint32_t AP_Scripting_SerialDevice::Port::device_available(void)
84{
85 WITH_SEMAPHORE(sem);
86 if (writebuffer) {
87 return writebuffer->available();
88 }
89 return 0;
90}
91
92/*
93 available space in outgoing buffer

Callers

nothing calls this directly

Calls 1

availableMethod · 0.45

Tested by

no test coverage detected