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 | 77efc209f9b4cb38374ebc2af42380a9275a7cbd (patch) | |
| tree | 0edb7215d43469c90b685ecfa63aa6397ccc99f9 /wirish | |
| parent | dbb3869eda265d9191342c307220056c302e570d (diff) | |
usb_serial.cpp: Minor tweak.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
| -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) { |
