Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Unwanted Carriage Return and Line Feed (Read 3101 times)
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
Unwanted Carriage Return and Line Feed
Dec 1st, 2012 at 10:36pm
Print Post  
I ran across a strange problem while trying to concat long strings:
[code]
void setup()
{
     Serial.begin(115200);
     String first;
     String second;
     String third;
     first = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
     Serial.print("first:");
     Serial.println(first);

     second = "-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
     Serial.print("second:");
     Serial.println(second);

     Serial.println();
     third = first + second;
     Serial.print("third:");
     Serial.println(third);
}
[/code]
The "-" in second produces a cr/lf in the output stream.  Without the "-" things work as expected.
The Arduino user interface works as expected with or without the "-".
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unwanted Carriage Return and Line Feed
Reply #1 - Dec 1st, 2012 at 10:43pm
Print Post  
Strange. I'll look at that for the next release. Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint