Serial.printf("String without a terminating linefeed"); Doesn't Display on Monitor
I've run across a weird issue with Serial.printf() on a Teensy 3.2. I am trying to use a small Teensy program I created a few years ago, and discovered that some of my print statements no longer display on the serial monitor. Here's a small demo program that reproduces the issue:
When I run this on a Teensy 3.2, I get the following output:
However, if I comment out the "Serial.println("Serial.println");" line, I get no output at all.
If I remove the 'Serial.printf()' statement and change the target to an Arduino Uno, then I get an output with or without a terminating linefeed
Anybody know what I'm doing wrong here?
Dell XPS15 7590
Windows 10 64-bit
Visual Studio 2019 Community Edition
Visual Micro Add-on
TIA,
Frank
I've run across a weird issue with Serial.printf() on a Teensy 3.2. I am trying to use a small Teensy program I created a few years ago, and discovered that some of my print statements no longer display on the serial monitor. Here's a small demo program that reproduces the issue:
Code:
/*
Name: Printf_Demo.ino
Created: 5/24/2020 10:13:54 AM
Author: FRANKNEWXPS15\Frank
*/
void setup()
{
Serial.begin(115200);
// wait until serial port opens for native USB devices
while (!Serial)
{
delay(10);
}
Serial.print("Serial.print without a terminating linefeed");
Serial.printf("Serial.printf without a terminating linefeed");
Serial.println("Serial.println");
}
void loop()
{
}
When I run this on a Teensy 3.2, I get the following output:
Code:
Opening port
Port open
Serial.print without a terminating linefeedSerial.printf without a terminating linefeedSerial.println
However, if I comment out the "Serial.println("Serial.println");" line, I get no output at all.
If I remove the 'Serial.printf()' statement and change the target to an Arduino Uno, then I get an output with or without a terminating linefeed
Anybody know what I'm doing wrong here?
Dell XPS15 7590
Windows 10 64-bit
Visual Studio 2019 Community Edition
Visual Micro Add-on
TIA,
Frank