diff options
| author | Joe Wasson <jwasson+github@gmail.com> | 2017-08-19 21:43:07 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-08-20 11:51:57 -0400 |
| commit | bae1144a9f45e0b9157cc489ab0b6c66f3cd22cb (patch) | |
| tree | fde21a12cd517bd6e520ca735eaba0e426b532bc /tmk_core | |
| parent | eb5748e8bf349883f8b727e33868e965c2f977bf (diff) | |
| download | qmk_firmware-bae1144a9f45e0b9157cc489ab0b6c66f3cd22cb.tar.gz qmk_firmware-bae1144a9f45e0b9157cc489ab0b6c66f3cd22cb.zip | |
Fix compilation error when NO_ACTION_LAYER is defined.
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/action_layer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index 58d919a04..c6a166a82 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c | |||
| @@ -188,10 +188,10 @@ action_t store_or_get_action(bool pressed, keypos_t key) | |||
| 188 | 188 | ||
| 189 | int8_t layer_switch_get_layer(keypos_t key) | 189 | int8_t layer_switch_get_layer(keypos_t key) |
| 190 | { | 190 | { |
| 191 | #ifndef NO_ACTION_LAYER | ||
| 191 | action_t action; | 192 | action_t action; |
| 192 | action.code = ACTION_TRANSPARENT; | 193 | action.code = ACTION_TRANSPARENT; |
| 193 | 194 | ||
| 194 | #ifndef NO_ACTION_LAYER | ||
| 195 | uint32_t layers = layer_state | default_layer_state; | 195 | uint32_t layers = layer_state | default_layer_state; |
| 196 | /* check top layer first */ | 196 | /* check top layer first */ |
| 197 | for (int8_t i = 31; i >= 0; i--) { | 197 | for (int8_t i = 31; i >= 0; i--) { |
