ctk-curses: style fixes
Thanks tools/contiki-indent
This commit is contained in:
parent
a43601b2fc
commit
476be8de7e
@ -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;
|
unsigned char c;
|
||||||
|
|
||||||
c = ctk_color_map[color & 0x0f];
|
c = ctk_color_map[color & 0x0f];
|
||||||
c |= ctk_color_map[(color >> 4) & 0x07] << 4;
|
c |= ctk_color_map[(color >> 4) & 0x07] << 4;
|
||||||
return c;
|
return c;
|
||||||
@ -450,6 +452,7 @@ char
|
|||||||
ctk_arch_getkey(void)
|
ctk_arch_getkey(void)
|
||||||
{
|
{
|
||||||
char k;
|
char k;
|
||||||
|
|
||||||
console_read();
|
console_read();
|
||||||
k = keys[keys_out++];
|
k = keys[keys_out++];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user