From 80085f6fb74ab5b6f37a9a6d36134395e299820a Mon Sep 17 00:00:00 2001 From: CloudSir <2301029643@qq.com> Date: Wed, 16 Feb 2022 17:03:23 +0800 Subject: [PATCH] fix function button_init whithout button_id --- multi_button.c | 1 + 1 file changed, 1 insertion(+) diff --git a/multi_button.c b/multi_button.c index 17cabad..878885d 100644 --- a/multi_button.c +++ b/multi_button.c @@ -25,6 +25,7 @@ void button_init(struct Button* handle, uint8_t(*pin_level)(), uint8_t active_le handle->hal_button_Level = pin_level; handle->button_level = handle->hal_button_Level(button_id); handle->active_level = active_level; + handle->button_id = button_id; } /**