Permalink
Browse files

spectrum now wraps arround.

  • Loading branch information...
fornellas committed Nov 14, 2012
1 parent b4cfe26 commit 7f6504d4aa51ed130a915975b34f077a608980ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.