This commit is contained in:
Leon Wilzer 2022-11-23 17:33:47 +01:00
parent 16d8cc01dc
commit f2f0b2dccb
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ void PrgInit
states[0] = &green_state;
states[1] = &red_state;
states[2] = &blue_state;
spectrum_state = r;
spectrum_state = 0;
pin = GREEN;
lamp_idx = BEG_LAMP_IDX;
n_loops = 10;
@ -92,7 +92,7 @@ void spectrum()
if(++blue_state>=LIGHT_MAX) { ++spectrum_state; }
break;
case rb:
if(--red_state<=LIGHT_MIN) { ++spectrum_state; }
if(--red_state<=LIGHT_MIN) { spectrum_state = 0; }
}
}