summaryrefslogtreecommitdiff
path: root/tmk_core/common/action_layer.h
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-02-01 11:40:12 +1100
committerDrashna Jaelre <drashna@live.com>2019-01-31 16:40:12 -0800
commitd8e9a0f7a319e27c8dbb4e5a1131bc02b365da76 (patch)
treee09444b0853f5dacf20a6124701a28ba13ee7fff /tmk_core/common/action_layer.h
parent8c5c1fd7fe8866f61081ec4cf953f48352d7c088 (diff)
Change return type of layer_switch_get_layer() to uint8_t (#5011)
* Change return type of layer_switch_get_layer() to uint8_t * Keep loop index signed so we don't wrap around
Diffstat (limited to 'tmk_core/common/action_layer.h')
-rw-r--r--tmk_core/common/action_layer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h
index f1551d2519..6e2f35d90d 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);
action_t store_or_get_action(bool pressed, keypos_t key);
/* return the topmost non-transparent layer currently associated with key */
-int8_t layer_switch_get_layer(keypos_t key);
+uint8_t layer_switch_get_layer(keypos_t key);
/* return action depending on current layer status */
action_t layer_switch_get_action(keypos_t key);