aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-06-09 22:35:59 -0400
committerAJM <poslathian@poslathian.(none)>2010-06-09 22:35:59 -0400
commit7783625ffc27f2fe21535a0d6b1a549f1c217380 (patch)
treed2c2f538486ac0d2bbc2fcf4b7474669b6f31e05 /libmaple
parentbe5593982965b22518c0605ef951574b4b97c871 (diff)
downloadlibrambutan-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')
-rw-r--r--libmaple/usb/usb.c2
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 */
}