Fixed issue with the load reading logic.
This commit is contained in:
parent
a606465425
commit
41cc5b2eef
10
src/main.c
10
src/main.c
|
@ -50,13 +50,11 @@ int main(int argc, char **argv)
|
||||||
_delay_ms(2500);
|
_delay_ms(2500);
|
||||||
ZCD_Poll();
|
ZCD_Poll();
|
||||||
|
|
||||||
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
|
||||||
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
|
||||||
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
|
||||||
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
//; //Do nothing until new Power cycle/reset occurs
|
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
||||||
|
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
||||||
|
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue