From 41cc5b2eef7fbd9677607e55fa92af0f0a0b7945 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Tue, 13 Aug 2024 17:32:55 -0700 Subject: [PATCH] Fixed issue with the load reading logic. --- src/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 9dceff3..57993f1 100644 --- a/src/main.c +++ b/src/main.c @@ -49,14 +49,12 @@ int main(int argc, char **argv) //The G1 pin is low at this point. _delay_ms(2500); 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){ - //; //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); } } }