diff options
author | AJM <poslathian@poslathian.(none)> | 2010-06-11 13:03:09 -0400 |
---|---|---|
committer | AJM <poslathian@poslathian.(none)> | 2010-06-11 13:03:09 -0400 |
commit | cb1a6fbc210a3c6a68b1b1cecf39e0cb9cffa1aa (patch) | |
tree | 1a752d05fc10d9dd164fb352a1dafe7f0a371d7a /wirish | |
parent | 57662f99c49ae5eb58ff5cba58f7f90812a721f5 (diff) | |
download | librambutan-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.cpp | 3 |
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); } |