The code snippet I posted should (maybe) be:
if (buttonUpState == HIGH && prevBtnUp == LOW)
{
if (millis() - lastBtnUp > transInt)
{
channel++;
lastBtnUp = millis();
Serial.println(channel);
}
}
I'm not positive, because I don't know what you want to have happen when.
If that placement of { and } causes the compiler grief, it is because of something that went wrong earlier. You'll need to post modified code and exact error messages.