One Button Two Functions bug fix

You didn't post a complete sketch.