diff options
author | AJM <poslathian@poslathian.(none)> | 2010-06-09 22:35:59 -0400 |
---|---|---|
committer | AJM <poslathian@poslathian.(none)> | 2010-06-09 22:35:59 -0400 |
commit | 7783625ffc27f2fe21535a0d6b1a549f1c217380 (patch) | |
tree | d2c2f538486ac0d2bbc2fcf4b7474669b6f31e05 /libmaple/usb | |
parent | be5593982965b22518c0605ef951574b4b97c871 (diff) | |
download | librambutan-7783625ffc27f2fe21535a0d6b1a549f1c217380.tar.gz librambutan-7783625ffc27f2fe21535a0d6b1a549f1c217380.zip |
new reset scheme now works
fixed some blocking issue on serial tx, improperly checking for connection.
Diffstat (limited to 'libmaple/usb')
-rw-r--r-- | libmaple/usb/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ } |