We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d982f commit 91e0062Copy full SHA for 91e0062
STM32F1/cores/maple/usb_serial.cpp
@@ -119,16 +119,9 @@ size_t n = 0;
119
size_t USBSerial::write(const uint8 *buf, uint32 len)
120
{
121
size_t n = 0;
122
-
123
-#ifdef USB_SERIAL_REQUIRE_DTR
124
- if (!(bool) *this || !buf) {
125
- return 0;
126
- }
127
-#else
128
- if (!buf || !(usb_is_connected(USBLIB) && usb_is_configured(USBLIB))) {
+ if (!(bool) *this || !buf) {
129
return 0;
130
}
131
-#endif
132
133
uint32 txed = 0;
134
while (txed < len) {
0 commit comments