X1000: board_key.c: 修复编译过程中的警告/Fix compile-time warnings
在第217行中,“(rt_uint32_t*)&keyId”应改为“(rt_ubase_t*)&keyId”。 In line 217, "(rt_uint32_t*)&keyId" should be changed to "(rt_ubase_t*)&keyId". Signed-off-by: Zhou Yanjie <zhou_yan_jie@163.com>
This commit is contained in:
parent
059be8ec8a
commit
c4bdf80cfa
|
@ -214,7 +214,7 @@ void kbd_thread(void* parameter)
|
|||
|
||||
while (1)
|
||||
{
|
||||
if(rt_mb_recv(_keyMb, (rt_uint32_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK)
|
||||
if(rt_mb_recv(_keyMb, (rt_ubase_t*)&keyId, RT_TICK_PER_SECOND) != RT_EOK)
|
||||
{
|
||||
//if no key pressed,check power key...
|
||||
keyId = 0;
|
||||
|
|
Loading…
Reference in New Issue