diff options
author | Drashna Jaelre <drashna@live.com> | 2020-03-10 02:23:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 20:23:26 +1100 |
commit | 668121bbf8daa3ba9d0f42ac7e39701e1b9d2f77 (patch) | |
tree | 0e7ab9d3a903aa381c7548f55520928443630ac6 /tmk_core | |
parent | 483ab88489b1c96dc84a484741831417307772bf (diff) | |
download | qmk_firmware-668121bbf8daa3ba9d0f42ac7e39701e1b9d2f77.tar.gz qmk_firmware-668121bbf8daa3ba9d0f42ac7e39701e1b9d2f77.zip |
Fix layer debug calls (#8370)
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/common/action_layer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index 4c7d15cd50..81f86f0f34 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -49,7 +49,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 * @@ -178,7 +178,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) |