summaryrefslogtreecommitdiff
path: root/quantum/debounce/sym_defer_pk.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-11-17 12:28:38 -0800
committerGitHub <noreply@github.com>2021-11-18 07:28:38 +1100
commit2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9 (patch)
tree3ddc4f2cc572c632a0027d31d6e3e86af03591bc /quantum/debounce/sym_defer_pk.c
parentb06740c933c63a8f82e0a7112f9eeab9bd93687a (diff)
downloadqmk_firmware-2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9.tar.gz
qmk_firmware-2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9.zip
Format code according to conventions (#15193)
Diffstat (limited to 'quantum/debounce/sym_defer_pk.c')
-rw-r--r--quantum/debounce/sym_defer_pk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/debounce/sym_defer_pk.c b/quantum/debounce/sym_defer_pk.c
index 626a9be841..1b698ba347 100644
--- a/quantum/debounce/sym_defer_pk.c
+++ b/quantum/debounce/sym_defer_pk.c
@@ -49,7 +49,7 @@ static debounce_counter_t *debounce_counters;
static fast_timer_t last_time;
static bool counters_need_update;
-#define DEBOUNCE_ELAPSED 0
+# define DEBOUNCE_ELAPSED 0
static void update_debounce_counters_and_transfer_if_expired(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, uint8_t elapsed_time);
static void start_debounce_counters(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows);
@@ -74,10 +74,10 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
bool updated_last = false;
if (counters_need_update) {
- fast_timer_t now = timer_read_fast();
+ fast_timer_t now = timer_read_fast();
fast_timer_t elapsed_time = TIMER_DIFF_FAST(now, last_time);
- last_time = now;
+ last_time = now;
updated_last = true;
if (elapsed_time > UINT8_MAX) {
elapsed_time = UINT8_MAX;