aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-06-11 13:03:09 -0400
committerAJM <poslathian@poslathian.(none)>2010-06-11 13:03:09 -0400
commitcb1a6fbc210a3c6a68b1b1cecf39e0cb9cffa1aa (patch)
tree1a752d05fc10d9dd164fb352a1dafe7f0a371d7a /wirish
parent57662f99c49ae5eb58ff5cba58f7f90812a721f5 (diff)
downloadlibrambutan-cb1a6fbc210a3c6a68b1b1cecf39e0cb9cffa1aa.tar.gz
librambutan-cb1a6fbc210a3c6a68b1b1cecf39e0cb9cffa1aa.zip
added getDTR and getRTS to usb.h, subtly modded how sendBytes checks for connection
flip flopped back and forth on how much work should be done here. For now its like 5 lines of changes
Diffstat (limited to 'wirish')
-rw-r--r--wirish/usb_serial.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp
index fe88d6e..f186dea 100644
--- a/wirish/usb_serial.cpp
+++ b/wirish/usb_serial.cpp
@@ -36,11 +36,12 @@ USBSerial :: USBSerial(void) {
}
void USBSerial::write(uint8 ch) {
- usbSendBytes(&ch, 1);
+ usbSendBytes(&ch, 1);
}
void USBSerial::write(const char *str) {
uint32 len = strlen(str);
+
usbSendBytes((uint8*)str, len);
}