[fix]修复短按->长按按键误触发按下事件

Signed-off-by: jaffer <jaffer.work@foxmail.com>
pull/36/head
jaffer 3 years ago
parent 492571c777
commit 879b3f0331

@ -132,7 +132,7 @@ void button_handler(struct Button* handle)
handle->state = 0; handle->state = 0;
} }
}else if(handle->ticks > SHORT_TICKS){ // long press up }else if(handle->ticks > SHORT_TICKS){ // long press up
handle->state = 0; handle->state = 1;
} }
break; break;

Loading…
Cancel
Save