Closed
Description
Describe the problem
When uploading this code snippet to the Nano ESP32 nothing gets printed when opening the serial monitor.
void setup() {
Serial.begin(9600);
while(!Serial);
Serial.println("Starting...");
}
void loop() {}
When opening the serial monitor with putty the prompt is printed as expected.
To reproduce
Upload a sketch to the Nano ESP32 either using the IDE or cli that uses while(!serial)
and prints messages when opening the serial monitor. Open the serial monitor.
Expected behavior
When opening the serial monitor I expect to see the messages printed inside setup
.
Arduino CLI version
0.34.2 Commit: 963c1a7 Date: 2023-09-11T10:05:41Z
Operating system
Windows
Operating system version
Windows 11 Pro
Additional context
No response
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details