Skip to content

Commit

Permalink
fix missing initialization for last_blink
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Aug 29, 2024
1 parent e50f2a7 commit 85165d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void start_blinking_interval(uint8_t sec, uint32_t interval) {

void stop_blinking(void) {
blink_timeout = 0;
last_blink = 0;
if (cfg_is_led_normally_on()) {
led_on();
led_status = ON;
Expand Down

0 comments on commit 85165d7

Please sign in to comment.