From 7783625ffc27f2fe21535a0d6b1a549f1c217380 Mon Sep 17 00:00:00 2001 From: AJM Date: Wed, 9 Jun 2010 22:35:59 -0400 Subject: new reset scheme now works fixed some blocking issue on serial tx, improperly checking for connection. --- libmaple/usb/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmaple/usb') diff --git a/libmaple/usb/usb.c b/libmaple/usb/usb.c index 9755618..e2d83ba 100644 --- a/libmaple/usb/usb.c +++ b/libmaple/usb/usb.c @@ -349,7 +349,7 @@ void usbWaitReset(void) { */ int16 usbSendBytes(uint8* sendBuf, uint16 len) { - if (((line_dtr_rts & 0x02) != 0) || bDeviceState != CONFIGURED) { + if (((line_dtr_rts & 0x02) == 0) || bDeviceState != CONFIGURED) { return -1; /* indicates to caller to stop trying, were not connected */ } -- cgit v1.2.3