Skip to content

Commit

Permalink
Fix static pixels vs. pixels count check
Browse files Browse the repository at this point in the history
SOMEONE forgot to put in an equals sign so that it's not an exclusive less than...

(hint: SOMEONE = seong)
  • Loading branch information
SeongGino authored Jul 4, 2024
1 parent 4f4dbf0 commit 7432467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SamcoEnhanced/SamcoEnhanced.ino
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,8 @@ void FeedbackSet()
if(SamcoPreferences::pins.oPixel >= 0) {
externPixel = new Adafruit_NeoPixel(SamcoPreferences::settings.customLEDcount, SamcoPreferences::pins.oPixel, NEO_GRB + NEO_KHZ800);
externPixel->begin();
if(SamcoPreferences::settings.customLEDstatic < SamcoPreferences::settings.customLEDcount) {
if(SamcoPreferences::settings.customLEDstatic > 0 &&
SamcoPreferences::settings.customLEDstatic <= SamcoPreferences::settings.customLEDcount) {
for(byte i = 0; i < SamcoPreferences::settings.customLEDstatic; i++) {
uint32_t color;
switch(i) {
Expand Down

0 comments on commit 7432467

Please sign in to comment.