diff options
author | skullY <[email protected]> | 2019-08-30 11:19:03 -0700 |
---|---|---|
committer | skullydazed <[email protected]> | 2019-08-30 15:01:52 -0700 |
commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /tests/test_common/matrix.c | |
parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip |
clang-format changes
Diffstat (limited to 'tests/test_common/matrix.c')
-rw-r--r-- | tests/test_common/matrix.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/tests/test_common/matrix.c b/tests/test_common/matrix.c index 4b501039b6..9a92a801c7 100644 --- a/tests/test_common/matrix.c +++ b/tests/test_common/matrix.c @@ -14,7 +14,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #include "matrix.h" #include "test_matrix.h" #include <string.h> @@ -31,33 +30,18 @@ uint8_t matrix_scan(void) { return 1; } -matrix_row_t matrix_get_row(uint8_t row) { - return matrix[row]; -} - -void matrix_print(void) { - -} - -void matrix_init_kb(void) { +matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; } -} +void matrix_print(void) {} -void matrix_scan_kb(void) { +void matrix_init_kb(void) {} -} +void matrix_scan_kb(void) {} -void press_key(uint8_t col, uint8_t row) { - matrix[row] |= 1 << col; -} +void press_key(uint8_t col, uint8_t row) { matrix[row] |= 1 << col; } -void release_key(uint8_t col, uint8_t row) { - matrix[row] &= ~(1 << col); -} +void release_key(uint8_t col, uint8_t row) { matrix[row] &= ~(1 << col); } -void clear_all_keys(void) { - memset(matrix, 0, sizeof(matrix)); -} +void clear_all_keys(void) { memset(matrix, 0, sizeof(matrix)); } -void led_set(uint8_t usb_led) { -} +void led_set(uint8_t usb_led) {} |