Skip to content

Commit bd00ca0

Browse files
committed
Added const qualifier to lerp8 and lerp16 signatures as per FastLED#332
1 parent 2c48613 commit bd00ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pixeltypes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ struct CRGB {
485485
}
486486

487487
/// return a new CRGB object after performing a linear interpolation between this object and the passed in object
488-
inline CRGB lerp8( const CRGB& other, fract8 frac)
488+
inline CRGB lerp8( const CRGB& other, fract8 frac) const
489489
{
490490
CRGB ret;
491491

@@ -497,7 +497,7 @@ struct CRGB {
497497
}
498498

499499
/// return a new CRGB object after performing a linear interpolation between this object and the passed in object
500-
inline CRGB lerp16( const CRGB& other, fract16 frac)
500+
inline CRGB lerp16( const CRGB& other, fract16 frac) const
501501
{
502502
CRGB ret;
503503

0 commit comments

Comments
 (0)