diff options
| author | Pavlos Vinieratos <pvinis@gmail.com> | 2016-07-13 00:20:28 +0200 |
|---|---|---|
| committer | Pavlos Vinieratos <pvinis@gmail.com> | 2016-07-16 00:04:12 +0200 |
| commit | 1a7e954f9fc4d250ba1ae46e3bfc168aca2b5cce (patch) | |
| tree | f9c1c4c5edc98cff8a51fb0cd9fd087e4c67c928 /quantum/process_keycode/process_tap_dance.c | |
| parent | 9ecf9073b96799e52a1f1c0d35b57177382902ce (diff) | |
| download | qmk_firmware-1a7e954f9fc4d250ba1ae46e3bfc168aca2b5cce.tar.gz qmk_firmware-1a7e954f9fc4d250ba1ae46e3bfc168aca2b5cce.zip | |
in case its NULL
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.c')
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 9b172e1b6..186889bc2 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c | |||
| @@ -22,7 +22,9 @@ static void _process_tap_dance_action_pair (qk_tap_dance_state_t *state, | |||
| 22 | static void _process_tap_dance_action_fn (qk_tap_dance_state_t *state, | 22 | static void _process_tap_dance_action_fn (qk_tap_dance_state_t *state, |
| 23 | qk_tap_dance_user_fn_t fn) | 23 | qk_tap_dance_user_fn_t fn) |
| 24 | { | 24 | { |
| 25 | fn(state); | 25 | if (fn) { |
| 26 | fn(state); | ||
| 27 | } | ||
| 26 | } | 28 | } |
| 27 | 29 | ||
| 28 | void process_tap_dance_action (uint16_t keycode) | 30 | void process_tap_dance_action (uint16_t keycode) |
