按键功能完成 上机测试成功

This commit is contained in:
2021-09-18 15:05:53 +08:00
parent 061acbf55d
commit 04dddf88d1
9 changed files with 5065 additions and 3657 deletions
+3 -3
View File
@@ -33,8 +33,8 @@ void GEI_BUTTON_CODE(struct button *bt,uint8_t in)
{
if(HAL_GetTick()>bt->time+t)
{
bt->code=255;
bt->times=255;
bt->code=-1;
bt->times=-1;
}
}
@@ -44,7 +44,7 @@ void GEI_BUTTON_CODE(struct button *bt,uint8_t in)
{
if(bt->lock==1)
{
if(bt->code==255)
if(bt->code==-1)
{
}else