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

Function verifyEndFrame

tests/fl/chipsets/encoders/apa102.hpp:37–45  ·  view source on GitHub ↗

Helper: Verify end frame (⌈num_leds/32⌉ DWords of 0xFF)

Source from the content-addressed store, hash-verified

35
36// Helper: Verify end frame (⌈num_leds/32⌉ DWords of 0xFF)
37static void verifyEndFrame(const fl::vector<fl::u8>& data, size_t offset, size_t num_leds) {
38 size_t end_dwords = (num_leds / 32) + 1;
39 size_t end_bytes = end_dwords * 4;
40 FL_REQUIRE(data.size() >= offset + end_bytes);
41
42 for (size_t i = 0; i < end_bytes; i++) {
43 FL_CHECK(data[offset + i] == 0xFF);
44 }
45}
46
47// Helper: Calculate expected total size
48static size_t expectedSize(size_t num_leds) {

Callers 1

apa102.hppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected