Format code according to conventions (#16322)

This commit is contained in:
QMK Bot authored and GitHub committed 2022-02-12 18:29:31 +00:00
1 parent afcdd7079c
commit 63646e8906
345 files changed
+4916 -3229

No files matched your search

+1 -1
View File
@@ -45,6 +45,6 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
}
void debounce_free(void) {}
#else // no debouncing.
#else // no debouncing.
# include "none.c"
#endif
+3 -1
View File
@@ -69,4 +69,6 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
}
}
bool debounce_active(void) { return true; }
bool debounce_active(void) {
return true;
}
+1 -1
View File
@@ -131,7 +131,7 @@ static void transfer_matrix_values(matrix_row_t raw[], matrix_row_t cooked[], ui
if (*debounce_pointer == DEBOUNCE_ELAPSED) {
*debounce_pointer = DEBOUNCE;
counters_need_update = true;
existing_row ^= col_mask; // flip the bit.
existing_row ^= col_mask; // flip the bit.
}
}
debounce_pointer++;
@@ -31,7 +31,9 @@ void set_time(uint32_t t);
void advance_time(uint32_t ms);
}
void DebounceTest::addEvents(std::initializer_list<DebounceTestEvent> events) { events_.insert(events_.end(), events.begin(), events.end()); }
void DebounceTest::addEvents(std::initializer_list<DebounceTestEvent> events) {
events_.insert(events_.end(), events.begin(), events.end());
}
void DebounceTest::runEvents() {
/* Run the test multiple times, from 1kHz to 10kHz scan rate */