diff options
| -rw-r--r-- | tmk_core/common/action_layer.c | 4 | ||||
| -rw-r--r-- | tmk_core/common/action_layer.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index 6ff8c5549..47cad996a 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c | |||
| @@ -296,7 +296,7 @@ action_t store_or_get_action(bool pressed, keypos_t key) { | |||
| 296 | * | 296 | * |
| 297 | * Gets the layer based on key info | 297 | * Gets the layer based on key info |
| 298 | */ | 298 | */ |
| 299 | int8_t layer_switch_get_layer(keypos_t key) { | 299 | uint8_t layer_switch_get_layer(keypos_t key) { |
| 300 | #ifndef NO_ACTION_LAYER | 300 | #ifndef NO_ACTION_LAYER |
| 301 | action_t action; | 301 | action_t action; |
| 302 | action.code = ACTION_TRANSPARENT; | 302 | action.code = ACTION_TRANSPARENT; |
| @@ -304,7 +304,7 @@ int8_t layer_switch_get_layer(keypos_t key) { | |||
| 304 | uint32_t layers = layer_state | default_layer_state; | 304 | uint32_t layers = layer_state | default_layer_state; |
| 305 | /* check top layer first */ | 305 | /* check top layer first */ |
| 306 | for (int8_t i = 31; i >= 0; i--) { | 306 | for (int8_t i = 31; i >= 0; i--) { |
| 307 | if (layers & (1UL<<i)) { | 307 | if (layers & (1UL << i)) { |
| 308 | action = action_for_key(i, key); | 308 | action = action_for_key(i, key); |
| 309 | if (action.code != ACTION_TRANSPARENT) { | 309 | if (action.code != ACTION_TRANSPARENT) { |
| 310 | return i; | 310 | return i; |
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h index f1551d251..6e2f35d90 100644 --- a/tmk_core/common/action_layer.h +++ b/tmk_core/common/action_layer.h | |||
| @@ -97,7 +97,7 @@ uint8_t read_source_layers_cache(keypos_t key); | |||
| 97 | action_t store_or_get_action(bool pressed, keypos_t key); | 97 | action_t store_or_get_action(bool pressed, keypos_t key); |
| 98 | 98 | ||
| 99 | /* return the topmost non-transparent layer currently associated with key */ | 99 | /* return the topmost non-transparent layer currently associated with key */ |
| 100 | int8_t layer_switch_get_layer(keypos_t key); | 100 | uint8_t layer_switch_get_layer(keypos_t key); |
| 101 | 101 | ||
| 102 | /* return action depending on current layer status */ | 102 | /* return action depending on current layer status */ |
| 103 | action_t layer_switch_get_action(keypos_t key); | 103 | action_t layer_switch_get_action(keypos_t key); |
