I took this out, is it redundant???:
delay(qton);
}
ReadCurrent(); //took this out
for (int count = 0; count < maxnumber;) //Counter will stop counting after certain amount of cycles
{
lcd.setCursor(0, 1); //clears lcd before incrementing to next number
count++;
lcd << "Cycle Count:" << count;
PORTA = 0B00000000;
for (byte i = 1; i <= 4; i++)
{
ReadCurrent();
delay(qton);
}
ReadCurrent();
PORTA = 0B11111111;
delay(TOff); //relay off time
}