Skip to content

Commit

Permalink
rename init_led to device_init
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Aug 30, 2024
1 parent 4c968ed commit da4505b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit da4505b

Please sign in to comment.