mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Rename LEDPattern constants to all caps
This commit is contained in:
@@ -297,10 +297,10 @@ LEDPattern LEDPattern::Gradient(GradientType type,
|
||||
auto bufLen = data.size();
|
||||
int ledsPerSegment = 0;
|
||||
switch (type) {
|
||||
case kContinuous:
|
||||
case GradientType::CONTINUOUS:
|
||||
ledsPerSegment = bufLen / numSegments;
|
||||
break;
|
||||
case kDiscontinuous:
|
||||
case GradientType::DISCONTINUOUS:
|
||||
ledsPerSegment = (bufLen - 1) / (numSegments - 1);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user