Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling mistakes in comments #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions flexible_button.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static uint8_t flex_button_process(void)

EVENT_SET_AND_EXEC_CB(target, FLEX_BTN_PRESS_DOWN);

/* swtich to button down stage */
/* switch to button down stage */
target->status = FLEX_BTN_STAGE_DOWN;
}
else
Expand All @@ -209,7 +209,7 @@ static uint8_t flex_button_process(void)
target->click_cnt :
FLEX_BTN_PRESS_REPEAT_CLICK);

/* swtich to button down stage */
/* switch to button down stage */
target->status = FLEX_BTN_STAGE_DOWN;
target->scan_cnt = 0;
target->click_cnt = 0;
Expand Down Expand Up @@ -256,7 +256,7 @@ static uint8_t flex_button_process(void)
}
else
{
/* swtich to multiple click stage */
/* switch to multiple click stage */
target->status = FLEX_BTN_STAGE_MULTIPLE_CLICK;
target->click_cnt ++;
}
Expand All @@ -266,7 +266,7 @@ static uint8_t flex_button_process(void)
case FLEX_BTN_STAGE_MULTIPLE_CLICK: /* stage: multiple click */
if (BTN_IS_PRESSED(i)) /* is pressed */
{
/* swtich to button down stage */
/* switch to button down stage */
target->status = FLEX_BTN_STAGE_DOWN;
target->scan_cnt = 0;
}
Expand All @@ -279,7 +279,7 @@ static uint8_t flex_button_process(void)
target->click_cnt :
FLEX_BTN_PRESS_REPEAT_CLICK);

/* swtich to default stage */
/* switch to default stage */
target->status = FLEX_BTN_STAGE_DEFAULT;
}
}
Expand Down