From 3dd6d27290701b176799bf5a1623572fea89acb4 Mon Sep 17 00:00:00 2001 From: JunQi Liu Date: Sat, 20 May 2023 15:36:29 +0800 Subject: [PATCH] Fix spelling mistakes in comments --- flexible_button.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flexible_button.c b/flexible_button.c index 9a16c4d..8468a37 100644 --- a/flexible_button.c +++ b/flexible_button.c @@ -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 @@ -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; @@ -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 ++; } @@ -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; } @@ -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; } }