Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance798 committed Jul 28, 2024
1 parent 50d6d16 commit f5470e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fw/Core/Hitcon/Logic/ButtonLogic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void ButtonLogic::OnReceiveData(uint8_t* data) {
pressed_btn = j;
} else {
if (_fire == j) _fire = 0;
if (BOUNCE_TIME_THRESHOLD < _count[j] && _count[j] <= LONG_PRESS_TIME_THRESHOLD) { // handle short press
if (BOUNCE_TIME_THRESHOLD < _count[j] &&
_count[j] <= LONG_PRESS_TIME_THRESHOLD) { // handle short press
_out = BUTTON_MODE + j;
CallbackWrapper(reinterpret_cast<void*>(static_cast<size_t>((_out))));
} else if (LONG_PRESS_TIME_THRESHOLD < _count[j]) {
Expand Down

0 comments on commit f5470e6

Please sign in to comment.