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 Why does 'print' not print? (Read 1872 times)
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
Why does 'print' not print?
May 15th, 2013 at 7:19pm
Print Post  
Why can I not get Serial.print to work in this example?

Code
Select All
void setup() {
	//  initialize serial port:
	Serial.begin(9600);
	delay(100);
	Serial.println("Init Complete");
}

void loop()
{
	Serial.print (" Cant get 'print' to print.    ");
	delay(1000);
} 


I can change it to println and it works fine.
In the Arduino user interface it works as expected in either case.
I have 'twiddled' the line endir through all its combinations - no help.


  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why does 'print' not print?
Reply #1 - May 15th, 2013 at 7:39pm
Print Post  
Since the debugger the serial window caches inbound transmissions until it find a line feed. 

I know it's not a perfect solution and needs some extra thought and dev work.

However you can force output at any time using

Code
Select All
serial.println(); 

« Last Edit: May 15th, 2013 at 7:40pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint