16 byte optimization of macro ;)

pull/2074/head 0.5.177
Drashna Jael're 7 years ago committed by Jack Humbert
parent 92f6d6ec02
commit 319ff649ab

@ -73,17 +73,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_MAKE:
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))
SEND_STRING(":dfu");
#elseif defined(BOOTLOADER_HALFKEY)
SEND_STRING(":teensy ");
#elseif defined(BOOTLOADER_CATERINA)
SEND_STRING(":avrdude ");
#else
SEND_STRING(" ");
":dfu "
#elif defined(BOOTLOADER_HALFKEY)
":teensy "
#elif defined(BOOTLOADER_CATERINA)
":avrdude "
#endif
SEND_STRING(SS_TAP(X_ENTER));
SS_TAP(X_ENTER));
}
return false;
break;

@ -42,17 +42,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_MAKE:
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))
SEND_STRING(":dfu");
#elseif defined(BOOTLOADER_HALFKEY)
SEND_STRING(":teensy ");
#elseif defined(BOOTLOADER_CATERINA)
SEND_STRING(":avrdude ");
#else
SEND_STRING(" ");
":dfu"
#elif defined(BOOTLOADER_HALFKEY)
":teensy"
#elif defined(BOOTLOADER_CATERINA)
":avrdude"
#endif
SEND_STRING(SS_TAP(X_ENTER));
SS_TAP(X_ENTER));
}
return false;
break;

Loading…
Cancel
Save