diff --git a/include/device.h b/include/device.h index bc7e432e..10ae119e 100644 --- a/include/device.h +++ b/include/device.h @@ -110,6 +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 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 a3d3178c..544bcca0 100644 --- a/src/device.c +++ b/src/device.c @@ -178,3 +178,9 @@ void stop_blinking(void) { led_status = OFF; } } + +void device_init(void) { + last_blink = 0; + stop_blinking(); + set_touch_result(TOUCH_NO); +}