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

Function verifyEndFrame

tests/fl/chipsets/encoders/hd108.hpp:47–52  ·  view source on GitHub ↗

Helper to verify end frame (all bytes should be 0xFF)

Source from the content-addressed store, hash-verified

45
46/// Helper to verify end frame (all bytes should be 0xFF)
47static void verifyEndFrame(const fl::vector<u8>& data, size_t expected_size) {
48 size_t start_offset = data.size() - expected_size;
49 for (size_t i = start_offset; i < data.size(); i++) {
50 FL_CHECK_EQ(data[i], 0xFF);
51 }
52}
53
54/// Helper to verify header bytes use maximum gain (31) for all channels
55/// Brightness parameter is ignored - gain is always max for maximum precision

Callers 1

hd108.hppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected