MCPcopy Create free account
hub / github.com/FastLED/FastLED / beginTransmission

Method beginTransmission

tests/fl/channels/spi_channel.cpp:236–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235private:
236 void beginTransmission(fl::span<const ChannelDataPtr> channels) {
237 mTransmitCount++;
238
239 // Capture transmitted data from first channel
240 if (!channels.empty() && channels[0]) {
241 const auto& data = channels[0]->getData();
242 mLastTransmittedData.clear();
243 mLastTransmittedData.insert(mLastTransmittedData.end(), data.begin(), data.end());
244 }
245 }
246
247 fl::string mName;
248 fl::vector<ChannelDataPtr> mEnqueuedChannels;

Callers

nothing calls this directly

Calls 6

getDataMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected