-
Notifications
You must be signed in to change notification settings - Fork 7.6k
backports HWCDC to v2.0.15 #9462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks good to me. I do not see anything obvious that is bad, apart from the few nitpicks outlined above |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuGlider Looking good 👍
Please just fix the #endif comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
@me-no-dev / @VojtechBartoska - Ready for merging and releasing 2.0.15 |
On an Adafruit Feather ESP32-S2 Serial.print() works WITHOUT a Serial.begin() ??!! |
the "serial console" over USB would be garbled badly after switching to "platform = [email protected]". this did not happen to the upstream version of MessageOutput. we used Serial.flush(), which seemed to be good in the respective context. however, the changes in github.com/espressif/arduino-esp32/pull/9462 made flush() detrimental. we remove the use of flush(), as it seems not to be required (in particular, the upstream project does not use it).
Description of Change
Backports all changes done in Core 3.0.0 to 2.0.15.
When selecting
USB CDC On Boot: Enabled
andUSB Mode: Hardware CDC and JTAG
,Serial
will be the USB HW CDC port.Changes/Fixes:
while(Serial);
will only return when HW CDC is connected to a Serial Monitor.Serial.end();
will stop HW CDC driver and disable USB Host enumerationSerial.begin()
will correctly enumerate the CDC portSerial.isPlugged()
will returntrue
whenever USB port is plugged and Host has enumerate the CDC portSerial.isConnected()
wil returntrue
whenever USB CDC is connected to a Serial Terminal and a session has statedSerial.setTxTimeoutMs(time_ms)
can be used to avoid failing writing within long data buffers due to Host delayA new example is here provided.
Tests scenarios
Tested with ESP32-S3 and ESP32-C3 using the new example.
Tested using a modified version of code provided in #9401
Related links
N/A