My Teensy 3.0 mistakenly thinks the serial monitor is open 2500ms before it is actually ready. I'm not sure what happened, but after a computer restart, under "Tools", the serial port has started to show up as a grey-ed out, "Serial Port: (emulated)". I suspect a behind the scenes driver update, but I now need to insert a "delay(2500)" after "while (! Serial) {}" in order to see serial output from my setup routine.
What has changed? Is there anyway to avoid such a long wait? Thanks
void setup() {
Serial.begin(57600);
while (! Serial) {}
delay(2500); //Previously, I just had to wait 100ms
Serial.println("Setup");
}
void loop() {
delay(500);
Serial.println("Loop");
}
What has changed? Is there anyway to avoid such a long wait? Thanks
void setup() {
Serial.begin(57600);
while (! Serial) {}
delay(2500); //Previously, I just had to wait 100ms
Serial.println("Setup");
}
void loop() {
delay(500);
Serial.println("Loop");
}