aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-11-23 10:09:34 +0000
committerGitHub <[email protected]>2024-11-23 10:09:34 +0000
commit4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68 (patch)
tree6dedf92beaa32ddd33476aec43c856f6a37901ed /tests/test_common
parent9e9b4acbde48acbe51fb9ff198be5dce49608ee9 (diff)
downloadqmk_firmware-4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68.tar.gz
qmk_firmware-4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68.zip
[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#24630)
* [Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881) * Apply suggestions from code review Co-authored-by: Nick Brassel <[email protected]> --------- Co-authored-by: Nebuleon <[email protected]> Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'tests/test_common')
-rw-r--r--tests/test_common/keycode_util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_common/keycode_util.cpp b/tests/test_common/keycode_util.cpp
index 9f88d40ec7..539cab819a 100644
--- a/tests/test_common/keycode_util.cpp
+++ b/tests/test_common/keycode_util.cpp
@@ -94,6 +94,8 @@ std::string generate_identifier(uint16_t kc) {
s << "MO(" << +QK_MOMENTARY_GET_LAYER(kc) << ")";
} else if (IS_QK_DEF_LAYER(kc)) {
s << "DF(" << +QK_DEF_LAYER_GET_LAYER(kc) << ")";
+ } else if (IS_QK_PERSISTENT_DEF_LAYER(kc)) {
+ s << "PDF(" << +QK_PERSISTENT_DEF_LAYER_GET_LAYER(kc) << ")";
} else if (IS_QK_TOGGLE_LAYER(kc)) {
s << "TG(" << +QK_TOGGLE_LAYER_GET_LAYER(kc) << ")";
} else if (IS_QK_LAYER_TAP_TOGGLE(kc)) {