Problem passing int to function

I cannot figure out what I'm doing wrong. I want the output to be 79 only without the garbage.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  int count=79;
void setup(){
	Serial.begin(57600);
}
void dispvar(int cnt){
	Serial.println(cnt);
}
void loop(){	
	dispvar(count);
	while(1);
}

// here is the monitor output
//  ~⸮⸮⸮⸮⸮79 
Try 9600 baud.
Yes, it works very well. I tried it on 19200 and garbage there also. Doesn't make sense to me. I've been programming Arduinos for the last 12 years since I retired and have normally used 57600 with no problems.
Thank you dutch !
Topic archived. No new replies allowed.