From cc38627816b343a2909d50dd0e059daa5986cff9 Mon Sep 17 00:00:00 2001 From: QMK Bot Date: Sat, 11 Apr 2020 00:48:16 +0000 Subject: format code according to conventions [skip ci] --- quantum/debounce/eager_pk.c | 10 +++++----- quantum/debounce/eager_pr.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'quantum/debounce') diff --git a/quantum/debounce/eager_pk.c b/quantum/debounce/eager_pk.c index 467689224..6fa956bf3 100644 --- a/quantum/debounce/eager_pk.c +++ b/quantum/debounce/eager_pk.c @@ -45,12 +45,12 @@ static bool matrix_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; } diff --git a/quantum/debounce/eager_pr.c b/quantum/debounce/eager_pr.c index 41843aedb..d12931fdd 100644 --- a/quantum/debounce/eager_pr.c +++ b/quantum/debounce/eager_pr.c @@ -37,12 +37,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; } -- cgit v1.2.3-70-g09d2