diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-25 17:19:41 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-25 17:19:41 -0400 |
commit | 64d5231553b13511d52506666711a9303106dfc1 (patch) | |
tree | 0edb7215d43469c90b685ecfa63aa6397ccc99f9 | |
parent | 1e1e10693c32869d36098274c3da7a531209d883 (diff) | |
download | librambutan-64d5231553b13511d52506666711a9303106dfc1.tar.gz librambutan-64d5231553b13511d52506666711a9303106dfc1.zip |
usb_serial.cpp: Minor tweak.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | wirish/usb_serial.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |