Skip to content

Commit 383f8f3

Browse files
committed
v0.1.8 hot fix, pixel programs
1 parent f6fe0c1 commit 383f8f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hardware/BMC-Pixels.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ class BMCPixels {
118118
}
119119

120120
void clockBeat(uint16_t speed){
121+
#if BMC_MAX_PIXELS > 0
121122
updateRainbowColor(60000/speed);
123+
#else
124+
speed = 0;
125+
#endif
122126
}
123127

124128
void reassign(){
@@ -536,7 +540,6 @@ class BMCPixels {
536540
// if the target color BMC_COLOR_RAINBOW then we will go thru all colors
537541
t_color = rainbowCurrentColor;
538542
setDimColor(t_index, t_color);
539-
//updateRainbowColor();
540543
#endif
541544
}
542545

0 commit comments

Comments
 (0)