Skip to content

Commit

Permalink
Remove change to USB re DTR adding in commit 9a489ca. So I can create…
Browse files Browse the repository at this point in the history
… a stable release
  • Loading branch information
rogerclarkmelbourne committed Feb 3, 2019
1 parent 60d982f commit 91e0062
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions STM32F1/cores/maple/usb_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 91e0062

Please sign in to comment.