I am stuck?

I am trying to get this to display MM:SS, I think something is wrong, but not sure what is needed to display the minutes, I think it only does M:SS?

void diplay_timer(long s){
if (s>-1){
int ss = (s/1000) %60;
int m = (s/1000)/60;
int s_pos = 3;
if (ss<10)
{ s_pos = s_pos +1;
lcd.setCursor(3,1);
lcd.print(“0”);
}

lcd.setCursor(1,1);
lcd.print(m);

lcd.setCursor(2,1);
lcd.print(":");

lcd.setCursor(s_pos,1);
lcd.print(ss);
}else{

lcd.setCursor(7,1);
lcd.print(“START!”);
digitalWrite(RELAY_HORN, LOW);

}

Please post all your code so we can better advise you.

markd833:
Please post all your code so we can better advise you.

And post it in the correct forum, using [code] tags so it'll get answered.

Try Project Guidance or Programming Questions.

Oh, and read the "Please read ..." post you will find in every board. It really helps.