From da4505bd6fada2025db7529867f280aea24804cf Mon Sep 17 00:00:00 2001 From: Fan DANG Date: Fri, 30 Aug 2024 12:36:45 +0800 Subject: [PATCH] rename init_led to device_init --- include/device.h | 2 +- src/device.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/device.h b/include/device.h index cfb9968a..10ae119e 100644 --- a/include/device.h +++ b/include/device.h @@ -110,7 +110,7 @@ static inline void start_blinking(uint8_t sec) { static inline void start_quick_blinking(uint8_t sec) { if (!is_nfc()) start_blinking_interval(sec, 25); } -void init_led(void); +void device_init(void); void stop_blinking(void); uint8_t device_is_blinking(void); bool device_allow_kbd_touch(void); diff --git a/src/device.c b/src/device.c index 6d25723f..544bcca0 100644 --- a/src/device.c +++ b/src/device.c @@ -179,7 +179,8 @@ void stop_blinking(void) { } } -void init_led(void) { +void device_init(void) { last_blink = 0; stop_blinking(); + set_touch_result(TOUCH_NO); }