rookie / opengauge

Automatically exported from code.google.com/p/opengauge
0 stars 0 forks source link

elm_write is wrong #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

void elm_write(char *str)
{
  while(*str!=NUL)
    Serial.print(*str++);
}

What is the expected output? What do you see instead?
"ATWS" expected. "ATWSTWSWSS" is produced. Serial.write sends one char. print 
sends the whole string.

What version of the product are you using? On what operating system?
I just verifed this is still in the code as of v 179 9/26/2010

Please provide any additional information below. Either eliminate the 'while' 
line or change the print to write.

Original issue reported on code.google.com by johnrain...@gmail.com on 26 Sep 2010 at 10:27

GoogleCodeExporter commented 9 years ago
Made requested change to code in Revision 185.

Original comment by matthews.mike@gmail.com on 4 Nov 2010 at 7:37