1. 更新文档
2. 修正KEEPALIVE计数未清空问题
This commit is contained in:
@@ -62,14 +62,14 @@ static void prv_process_btn(ebtn_btn_t *btn, uint8_t old_state, uint8_t new_stat
|
||||
btn->click_cnt = 0;
|
||||
}
|
||||
|
||||
/* Start with new on-press */
|
||||
btn->flags |= EBTN_FLAG_ONPRESS_SENT;
|
||||
ebtobj->evt_fn(btn, EBTN_EVT_ONPRESS);
|
||||
|
||||
/* Set keep alive time */
|
||||
btn->keepalive_last_time = mstime;
|
||||
btn->keepalive_cnt = 0;
|
||||
|
||||
/* Start with new on-press */
|
||||
btn->flags |= EBTN_FLAG_ONPRESS_SENT;
|
||||
ebtobj->evt_fn(btn, EBTN_EVT_ONPRESS);
|
||||
|
||||
btn->time_change = mstime; /* Button state has now changed */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user