This commit is contained in:
Leon Wilzer 2022-11-23 18:13:08 +01:00
parent 6f279e01d8
commit 7fd61af329

View File

@ -45,10 +45,9 @@ void PrgInit
states[0] = &red_state; states[0] = &red_state;
states[1] = &green_state; states[1] = &green_state;
states[2] = &blue_state; states[2] = &blue_state;
spectrum_state = pr; spectrum_state = 0;
pin = RED; pin = RED;
lamp_idx = BEG_LAMP_IDX; lamp_idx = BEG_LAMP_IDX;
n_loops = 10;
} }
int PrgTic int PrgTic
@ -94,6 +93,7 @@ void spectrum()
break; break;
case mg: case mg:
if(--green_state<LIGHT_MIN) {spectrum_state = 0;} if(--green_state<LIGHT_MIN) {spectrum_state = 0;}
break;
default: default:
spectrum_state = 0; spectrum_state = 0;
} }