1,修改状态机切换的状态。 2,修改错误的代码注释。
@ -132,8 +132,8 @@ static void button_handler(struct Button* handle)
} else {
handle->state = 0;
}
} else if(handle->ticks > SHORT_TICKS) { // long press up
} else if(handle->ticks > SHORT_TICKS) { // SHORT_TICKS < press down hold time < LONG_TICKS
handle->state = 1;
break;