Skip to content

Commit

Permalink
Add missing includes to LEDPattern.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 18, 2024
1 parent 7663211 commit 411c400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wpilibc/src/main/native/cpp/LEDPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <algorithm>
#include <cmath>
#include <numbers>
#include <unordered_map>
#include <vector>

#include <wpi/MathExtras.h>
#include <wpi/timestamp.h>
Expand Down Expand Up @@ -232,8 +234,8 @@ LEDPattern LEDPattern::Steps(std::span<const std::pair<double, Color>> 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<const std::pair<double, Color>>(
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
Expand Down

0 comments on commit 411c400

Please sign in to comment.