Skip to content
Browse files

spectrum now wraps arround.

  • Loading branch information...
1 parent b4cfe26 commit 7f6504d4aa51ed130a915975b34f077a608980ed @fornellas committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 SFRGBLEDMatrix/SFRGBLEDMatrix.cpp
View
2 SFRGBLEDMatrix/SFRGBLEDMatrix.cpp
@@ -273,7 +273,7 @@ Color SFRGBLEDMatrix::spectrum(uint16_t value, uint16_t max){
p-=75;
return RGB(15, 0, 14-p);
}
- return 0;
+ return spectrum(value-max, max);
}
void SFRGBLEDMatrix::progressBarInit(Color borderColor){

0 comments on commit 7f6504d

Please sign in to comment.
Something went wrong with that request. Please try again.