Fixed issue with logic
This commit is contained in:
parent
270856d85d
commit
73e99fc3b9
11
src/main.c
11
src/main.c
|
@ -52,13 +52,12 @@ int main(int argc, char **argv)
|
||||||
_delay_ms(2500);
|
_delay_ms(2500);
|
||||||
ZCD_Poll();
|
ZCD_Poll();
|
||||||
TriacOut_SetupPins();
|
TriacOut_SetupPins();
|
||||||
|
|
||||||
Load_HandleLoadPortA(ADC_LOAD1, 1);
|
//Constantly ensure the loads are in a valid range.
|
||||||
Load_HandleLoadPortB(ADC_LOAD2, 3);
|
|
||||||
Load_HandleLoadPortB(ADC_LOAD3, 2);
|
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
; //Do nothing until new Power cycle/reset occurs
|
Load_HandleLoadPortA(ADC_LOAD1, 1);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD2, 3);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD3, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue