添加tran命令透传小板命令

添加slave_info命令测试小板通信状态
  添加cfginfo命令显示配置文件信息
  按键处于按下状态才响应检测命令
This commit is contained in:
ranchuan
2023-12-29 18:09:10 +08:00
parent 92f3ebbe33
commit 66ecf9c411
12 changed files with 212 additions and 50 deletions

View File

@@ -43,7 +43,15 @@ void cmd_m4_init()
// },"key press");
}
// 返回1则按键已按下
int cmd_m4_key_pressed()
{
if(g_self.key_pressed){
return 1;
}else{
return 0;
}
}