mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 11:29:26 +00:00
Allow QK_MAKE to work with converters (#18637)
This commit is contained in:
parent
7a1517b6d4
commit
86938fd958
@ -29,6 +29,7 @@ ifneq ($(CONVERT_TO),)
|
|||||||
|
|
||||||
# Configure any defaults
|
# Configure any defaults
|
||||||
OPT_DEFS += -DCONVERT_TO_$(strip $(shell echo $(CONVERT_TO) | tr '[:lower:]' '[:upper:]'))
|
OPT_DEFS += -DCONVERT_TO_$(strip $(shell echo $(CONVERT_TO) | tr '[:lower:]' '[:upper:]'))
|
||||||
|
OPT_DEFS += -DCONVERTER_TARGET=\"$(strip $(CONVERT_TO))\"
|
||||||
OPT_DEFS += -DCONVERTER_ENABLED
|
OPT_DEFS += -DCONVERTER_ENABLED
|
||||||
VPATH += $(CONVERTER)
|
VPATH += $(CONVERTER)
|
||||||
|
|
||||||
|
@ -422,7 +422,11 @@ bool process_record_quantum(keyrecord_t *record) {
|
|||||||
} else {
|
} else {
|
||||||
SEND_STRING_DELAY(" compile ", TAP_CODE_DELAY);
|
SEND_STRING_DELAY(" compile ", TAP_CODE_DELAY);
|
||||||
}
|
}
|
||||||
|
# if defined(CONVERTER_ENABLED)
|
||||||
|
SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP " -e CONVERT_TO=" CONVERTER_TARGET SS_TAP(X_ENTER), TAP_CODE_DELAY);
|
||||||
|
# else
|
||||||
SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP SS_TAP(X_ENTER), TAP_CODE_DELAY);
|
SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP SS_TAP(X_ENTER), TAP_CODE_DELAY);
|
||||||
|
# endif
|
||||||
if (temp_mod & MOD_MASK_SHIFT && temp_mod & MOD_MASK_CTRL) {
|
if (temp_mod & MOD_MASK_SHIFT && temp_mod & MOD_MASK_CTRL) {
|
||||||
reset_keyboard();
|
reset_keyboard();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user