aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e2d83ba..7cca37f 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 & CONTROL_LINE_RTS) == 0) || bDeviceState != CONFIGURED) {
return -1; /* indicates to caller to stop trying, were not connected */
}