Fixed issue with logic
This commit is contained in:
parent
270856d85d
commit
73e99fc3b9
|
@ -53,12 +53,11 @@ int main(int argc, char **argv)
|
||||||
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