add return value in rtgui_key_rx function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1560 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
08240e3b8b
commit
b4ae6c402e
|
@ -274,7 +274,7 @@ static void rt_keymap_init(void)
|
||||||
s_key_map[0x48] = RTGUIK_UP;
|
s_key_map[0x48] = RTGUIK_UP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rtgui_key_rx(rt_device_t dev, rt_size_t size)
|
static rt_err_t rtgui_key_rx(rt_device_t dev, rt_size_t size)
|
||||||
{
|
{
|
||||||
struct rtgui_event_kbd kbd_event;
|
struct rtgui_event_kbd kbd_event;
|
||||||
char key_value;
|
char key_value;
|
||||||
|
@ -303,6 +303,8 @@ static void rtgui_key_rx(rt_device_t dev, rt_size_t size)
|
||||||
/* post down event */
|
/* post down event */
|
||||||
rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event));
|
rtgui_server_post_event(&(kbd_event.parent), sizeof(kbd_event));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue