Skip to content

Commit

Permalink
spectrum now wraps arround.
Browse files Browse the repository at this point in the history
  • Loading branch information
fornellas committed Nov 14, 2012
1 parent b4cfe26 commit 7f6504d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SFRGBLEDMatrix/SFRGBLEDMatrix.cpp
Expand Up @@ -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){
Expand Down

0 comments on commit 7f6504d

Please sign in to comment.