diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-09-14 09:46:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 09:46:35 -0400 |
commit | 9110335142813c60c4ae3572444d4f954c41ef14 (patch) | |
tree | d8f758f8d87e7e8f7bb7e2f39a8de2f0a3158e34 /app/src/split_listener.c | |
parent | 2c38947d1dcde236c27aba0c29042e4b610ee5d8 (diff) | |
parent | 191a2d755ad4761bd04a30a113e05119ad7aa61e (diff) |
Merge pull request #183 from petejohanson/ops/clang-format-checks
Standardize code formatting using clang-format w/ LLVM style
Diffstat (limited to 'app/src/split_listener.c')
-rw-r--r-- | app/src/split_listener.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/app/src/split_listener.c b/app/src/split_listener.c index 1263807..b2adfb2 100644 --- a/app/src/split_listener.c +++ b/app/src/split_listener.c @@ -19,18 +19,17 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); #include <zmk/hid.h> #include <zmk/endpoints.h> -int split_listener(const struct zmk_event_header *eh) -{ - LOG_DBG(""); - if (is_position_state_changed(eh)) { - const struct position_state_changed *ev = cast_position_state_changed(eh); - if (ev->state) { - return zmk_split_bt_position_pressed(ev->position); - } else { - return zmk_split_bt_position_released(ev->position); +int split_listener(const struct zmk_event_header *eh) { + LOG_DBG(""); + if (is_position_state_changed(eh)) { + const struct position_state_changed *ev = cast_position_state_changed(eh); + if (ev->state) { + return zmk_split_bt_position_pressed(ev->position); + } else { + return zmk_split_bt_position_released(ev->position); + } } - } - return 0; + return 0; } ZMK_LISTENER(split_listener, split_listener); |