From cb1a6fbc210a3c6a68b1b1cecf39e0cb9cffa1aa Mon Sep 17 00:00:00 2001 From: AJM Date: Fri, 11 Jun 2010 13:03:09 -0400 Subject: 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 --- wirish/usb_serial.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wirish/usb_serial.cpp') 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); } -- cgit v1.2.3