Skip to content

Commit

Permalink
fix led behavivor
Browse files Browse the repository at this point in the history
Signed-off-by: hyx0329 <[email protected]>
  • Loading branch information
hyx0329 committed Sep 5, 2022
1 parent ab7f486 commit 7ce5231
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openstick-button-monitor/openstick-button-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ handle_key_down_event() {
# set key down time (start time)
export EVENT_TIME_START="$1"
export EVENT_LONG_PRESS=0
}

handle_key_long_press_event() {
export EVENT_LONG_PRESS=1
if test_action_long "$1" "$2"; then
set_led off
else
set_led on
fi
}

handle_key_long_press_event() {
export EVENT_LONG_PRESS=1
}

handle_key_event() {
# handle incoming key events

Expand Down

0 comments on commit 7ce5231

Please sign in to comment.