Passing char to a function

I had if else statements but i redid the code for millis and just havn;t put it back yet