Skip to content
Snippets Groups Projects
Commit 5e5c785e authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Simon Glass
Browse files

serial: sandbox: support Unicode


Due to a conversion error the sandbox does not accept byte values 0x80-0xff
from the keyboard. The UEFI extended text input unit test requires Unicode
support.

Use unsigned char for the serial buffer.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
parent 15ab77c2
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR;
* serial_buf_write == serial_buf_read -> empty buffer * serial_buf_write == serial_buf_read -> empty buffer
* (serial_buf_write + 1) % 16 == serial_buf_read -> full buffer * (serial_buf_write + 1) % 16 == serial_buf_read -> full buffer
*/ */
static char serial_buf[16]; static unsigned char serial_buf[16];
static unsigned int serial_buf_write; static unsigned int serial_buf_write;
static unsigned int serial_buf_read; static unsigned int serial_buf_read;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment