From 91e0062f19e5026ede2d7bb5652530b23fcb26d4 Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Sun, 3 Feb 2019 17:49:51 +1100 Subject: [PATCH] Remove change to USB re DTR adding in commit 9a489ca25fa2794bd39d4d2d46e1d9d3ecd733e2. So I can create a stable release --- STM32F1/cores/maple/usb_serial.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/STM32F1/cores/maple/usb_serial.cpp b/STM32F1/cores/maple/usb_serial.cpp index a1e2512e1..1cca589af 100644 --- a/STM32F1/cores/maple/usb_serial.cpp +++ b/STM32F1/cores/maple/usb_serial.cpp @@ -119,16 +119,9 @@ size_t n = 0; size_t USBSerial::write(const uint8 *buf, uint32 len) { size_t n = 0; - -#ifdef USB_SERIAL_REQUIRE_DTR - if (!(bool) *this || !buf) { - return 0; - } -#else - if (!buf || !(usb_is_connected(USBLIB) && usb_is_configured(USBLIB))) { + if (!(bool) *this || !buf) { return 0; } -#endif uint32 txed = 0; while (txed < len) {