I changed them to if statements and cleaned it up a little and it works when counting up but not down. It goes from 2:00 to 2:-1 to 1:58.
Updated Code below:
// Begin Code for timing
if (sec1 == 59 && min1 >= 0) { // Resets seconds to 0 and increases minute when hitting 60s
min1 = min1 +1;
sec1 = 0;
}
if (sec1 < 0 && min1 >= 1){ // Resets seconds to 59 and decreses minute when hitting 0s
sec1 = 59;
min1 = min1 - 1;
}
if (dispcount <= 59){
sec1 = dispcount;
min1 = 0;
}
else {
sec1 = dispcount - (60*min1);}
// End Code for Timing