Skip to content

Commit 91e0062

Browse files
Remove change to USB re DTR adding in commit 9a489ca. So I can create a stable release
1 parent 60d982f commit 91e0062

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

STM32F1/cores/maple/usb_serial.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,9 @@ size_t n = 0;
119119
size_t USBSerial::write(const uint8 *buf, uint32 len)
120120
{
121121
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))) {
122+
if (!(bool) *this || !buf) {
129123
return 0;
130124
}
131-
#endif
132125

133126
uint32 txed = 0;
134127
while (txed < len) {

0 commit comments

Comments
 (0)