aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/main.c
diff options
context:
space:
mode:
authorPete Johanson <[email protected]>2020-09-13 22:53:24 -0400
committerPete Johanson <[email protected]>2020-09-14 00:10:34 -0400
commit191a2d755ad4761bd04a30a113e05119ad7aa61e (patch)
tree5901165a6cd01427b55cda059f8587bc04b3e089 /app/src/main.c
parent296a89ce6364fd97099d694dddcbb30e8b0925c0 (diff)
downloadzmk-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.c20
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 */
}