From 64d5231553b13511d52506666711a9303106dfc1 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 25 Jul 2012 17:19:41 -0400 Subject: usb_serial.cpp: Minor tweak. Signed-off-by: Marti Bolivar --- wirish/usb_serial.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wirish/usb_serial.cpp') diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp index a01900f..cfc6317 100644 --- a/wirish/usb_serial.cpp +++ b/wirish/usb_serial.cpp @@ -58,8 +58,7 @@ void USBSerial::end(void) { } void USBSerial::write(uint8 ch) { - const uint8 buf[] = {ch}; - this->write(buf, 1); + this->write(&ch, 1); } void USBSerial::write(const char *str) { -- cgit v1.2.3