diff options
author | Pete Johanson <[email protected]> | 2020-09-13 22:53:24 -0400 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2020-09-14 00:10:34 -0400 |
commit | 191a2d755ad4761bd04a30a113e05119ad7aa61e (patch) | |
tree | 5901165a6cd01427b55cda059f8587bc04b3e089 /app/src/main.c | |
parent | 296a89ce6364fd97099d694dddcbb30e8b0925c0 (diff) | |
download | zmk-191a2d755ad4761bd04a30a113e05119ad7aa61e.tar.gz zmk-191a2d755ad4761bd04a30a113e05119ad7aa61e.zip |
chore: clang-format the codebase.
* Use the LLVM style
* Override indent width (8) and column limit (100)
* Fixes #142.
Diffstat (limited to 'app/src/main.c')
-rw-r--r-- | app/src/main.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/app/src/main.c b/app/src/main.c index 5da272e502..dca923e9bf 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -18,20 +18,18 @@ LOG_MODULE_REGISTER(zmk, CONFIG_ZMK_LOG_LEVEL); #define ZMK_KSCAN_DEV DT_LABEL(ZMK_MATRIX_NODE_ID) -void main(void) -{ - LOG_INF("Welcome to ZMK!\n"); +void main(void) { + LOG_INF("Welcome to ZMK!\n"); - if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0) - { - return; - } + if (zmk_kscan_init(ZMK_KSCAN_DEV) != 0) { + return; + } #ifdef CONFIG_ZMK_DISPLAY - zmk_display_init(); + zmk_display_init(); - while (1) { - zmk_display_task_handler(); - } + while (1) { + zmk_display_task_handler(); + } #endif /* CONFIG_ZMK_DISPLAY */ } |