mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-13 03:54:42 +00:00
16 byte optimization of macro ;)
This commit is contained in:
parent
92f6d6ec02
commit
319ff649ab
2 changed files with 14 additions and 18 deletions
|
@ -73,17 +73,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case KC_MAKE:
|
case KC_MAKE:
|
||||||
if (!record->event.pressed) {
|
if (!record->event.pressed) {
|
||||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
|
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
|
||||||
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
||||||
SEND_STRING(":dfu");
|
":dfu "
|
||||||
#elseif defined(BOOTLOADER_HALFKEY)
|
#elif defined(BOOTLOADER_HALFKEY)
|
||||||
SEND_STRING(":teensy ");
|
":teensy "
|
||||||
#elseif defined(BOOTLOADER_CATERINA)
|
#elif defined(BOOTLOADER_CATERINA)
|
||||||
SEND_STRING(":avrdude ");
|
":avrdude "
|
||||||
#else
|
|
||||||
SEND_STRING(" ");
|
|
||||||
#endif
|
#endif
|
||||||
SEND_STRING(SS_TAP(X_ENTER));
|
SS_TAP(X_ENTER));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -42,17 +42,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case KC_MAKE:
|
case KC_MAKE:
|
||||||
if (!record->event.pressed) {
|
if (!record->event.pressed) {
|
||||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
|
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
|
||||||
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
||||||
SEND_STRING(":dfu");
|
":dfu"
|
||||||
#elseif defined(BOOTLOADER_HALFKEY)
|
#elif defined(BOOTLOADER_HALFKEY)
|
||||||
SEND_STRING(":teensy ");
|
":teensy"
|
||||||
#elseif defined(BOOTLOADER_CATERINA)
|
#elif defined(BOOTLOADER_CATERINA)
|
||||||
SEND_STRING(":avrdude ");
|
":avrdude"
|
||||||
#else
|
|
||||||
SEND_STRING(" ");
|
|
||||||
#endif
|
#endif
|
||||||
SEND_STRING(SS_TAP(X_ENTER));
|
SS_TAP(X_ENTER));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue