From 476be8de7e218e808bd0ad59c977d4f53d133b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 31 Mar 2013 04:07:03 +0200 Subject: [PATCH] ctk-curses: style fixes Thanks tools/contiki-indent --- platform/native/ctk/ctk-curses.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/native/ctk/ctk-curses.c b/platform/native/ctk/ctk-curses.c index 0efb50745..19af14506 100644 --- a/platform/native/ctk/ctk-curses.c +++ b/platform/native/ctk/ctk-curses.c @@ -78,9 +78,11 @@ static unsigned char ctk_color_map[8] = { }; /*-----------------------------------------------------------------------------------*/ -static unsigned char map_color(unsigned char color) +static unsigned char +map_color(unsigned char color) { unsigned char c; + c = ctk_color_map[color & 0x0f]; c |= ctk_color_map[(color >> 4) & 0x07] << 4; return c; @@ -450,6 +452,7 @@ char ctk_arch_getkey(void) { char k; + console_read(); k = keys[keys_out++];