Serial.parseInt() behavior changes with uninvolved loop