Native USB "Serial" behavior

29 views
Skip to first unread message

William Westfield

unread,
Feb 7, 2022, 9:02:17 PM2/7/22
to Developers
Does anyone else sometimes wish that Serial on Native USB boards behave more like Serial on USART boards?
In particular, "while (Serial) ;" should exit immediately, and "Serial.write()" and etc should just dump their output on the floor when the USB port is not plugged in…

BillW/WestfW

Jacob Christ

unread,
Feb 7, 2022, 9:07:16 PM2/7/22
to Arduino Developers
chipKIT dumps data on Serial.write() by using DTR from the USB host to let the board know that there is something listening. Should be easy enough to push change up stream if there was enough interest or just implement from scratch.

Jacob

--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
To view this discussion on the web visit https://groups.google.com/a/arduino.cc/d/msgid/developers/C5AE2214-64EB-4E47-9FA3-1AFF697A97A3%40mac.com.
Reply all
Reply to author
Forward
0 new messages