Skip to content

Commit

Permalink
Avoid double increment
Browse files Browse the repository at this point in the history
  • Loading branch information
r-ma authored Nov 20, 2024
1 parent 1abe2e5 commit 44b4d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/encoder/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ inline static void read_encoder(rotary_encoder_t *re)
}
}

re->store = 0;
ev.type = RE_ET_CHANGED;
xQueueSendToBack(_queue, &ev, 0);
}
Expand Down

0 comments on commit 44b4d88

Please sign in to comment.