diff options
author | Ryan <fauxpark@gmail.com> | 2020-12-18 01:06:30 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 14:06:30 +0000 |
commit | 6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9 (patch) | |
tree | a5266a6ea24a9dfa1627c0273a24198c5a436b3a /quantum/debounce | |
parent | d9dcb716bfa9eef32560a95ecb50274a0f2b170c (diff) | |
download | qmk_firmware-6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9.tar.gz qmk_firmware-6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9.zip |
Run cformat and dos2unix manually (#11235)
Diffstat (limited to 'quantum/debounce')
-rw-r--r-- | quantum/debounce/sym_defer_pk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/debounce/sym_defer_pk.c b/quantum/debounce/sym_defer_pk.c index f404cf9c44..6c0e3bb071 100644 --- a/quantum/debounce/sym_defer_pk.c +++ b/quantum/debounce/sym_defer_pk.c @@ -38,12 +38,12 @@ static bool counters_need_update; #define MAX_DEBOUNCE (DEBOUNCE_ELAPSED - 1) static uint8_t wrapping_timer_read(void) { - static uint16_t time = 0; + static uint16_t time = 0; static uint8_t last_result = 0; - uint16_t new_time = timer_read(); - uint16_t diff = new_time - time; - time = new_time; - last_result = (last_result + diff) % (MAX_DEBOUNCE + 1); + uint16_t new_time = timer_read(); + uint16_t diff = new_time - time; + time = new_time; + last_result = (last_result + diff) % (MAX_DEBOUNCE + 1); return last_result; } |