MCPcopy Create free account
hub / github.com/dmadison/ArduinoXInput / releaseAll

Method releaseAll

src/XInput.cpp:364–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void XInputController::releaseAll() {
365 const uint8_t offset = 2; // Skip message type and packet size
366 memset(tx + offset, 0x00, sizeof(tx) - offset); // Clear TX array
367 newData = true; // Data changed and is unsent
368 autosend();
369}
370
371void XInputController::setAutoSend(boolean a) {
372 autoSendOption = a;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected