Update multi_button.c

在issue中看到网友反馈的bug(连击接着长按不会触发长按事件),但是没人提交这段代码,那我就代劳咯,哈哈哈
pull/19/head
Glacierty 4 years ago committed by GitHub
parent b7bec347ad
commit 0e2f1c366f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save