summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-03-10 02:23:26 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commit4434339a9d3bfdbf2cc563524f19f065a79951cc (patch)
tree65d342d7820049228070397ae8f61c5c47e76d0a
parent316feba8487df07e1d80a45f5fa14d5a9ed9c35d (diff)
Fix layer debug calls (#8370)
-rw-r--r--tmk_core/common/action_layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c
index bfcd724db1..2a486ed41f 100644
--- a/tmk_core/common/action_layer.c
+++ b/tmk_core/common/action_layer.c
@@ -51,7 +51,7 @@ static void default_layer_state_set(layer_state_t state) {
*
* Print out the hex value of the 32-bit default layer state, as well as the value of the highest bit.
*/
-void default_layer_debug(void) { dprintf("%08lX(%u)", default_layer_state, biton32(default_layer_state)); }
+void default_layer_debug(void) { dprintf("%08lX(%u)", default_layer_state, get_highest_layer(default_layer_state)); }
/** \brief Default Layer Set
*
@@ -183,7 +183,7 @@ void layer_xor(layer_state_t state) { layer_state_set(layer_state ^ state); }
*
* Print out the hex value of the 32-bit layer state, as well as the value of the highest bit.
*/
-void layer_debug(void) { dprintf("%08lX(%u)", layer_state, biton32(layer_state)); }
+void layer_debug(void) { dprintf("%08lX(%u)", layer_state, get_highest_layer(layer_state)); }
#endif
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)