diff --git a/wpilibc/src/main/native/cpp/LEDPattern.cpp b/wpilibc/src/main/native/cpp/LEDPattern.cpp index 2b745e9645d..ca5a978d795 100644 --- a/wpilibc/src/main/native/cpp/LEDPattern.cpp +++ b/wpilibc/src/main/native/cpp/LEDPattern.cpp @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include @@ -232,8 +234,8 @@ LEDPattern LEDPattern::Steps(std::span> steps) { return LEDPattern::Solid(steps[0].second); } - return LEDPattern{[steps = std::vector(steps.begin(), steps.end())]( - auto data, auto writer) { + return LEDPattern{[steps = std::vector>( + steps.begin(), steps.end())](auto data, auto writer) { auto bufLen = data.size(); // precompute relevant positions for this buffer so we don't need to do a