Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Mar 16, 2022
1 parent dd1bc02 commit 427e50b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,18 @@ bool process_record_quantum(keyrecord_t *record) {
#ifdef ENABLE_COMPILE_KEYCODE
case QK_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
{
# ifdef NO_ACTION_ONESHOT
# ifdef NO_ACTION_ONESHOT
const uint8_t temp_mod = mod_config(get_mods());
# else
# else
const uint8_t temp_mod = mod_config(get_mods() | get_oneshot_mods());
clear_oneshot_mods();
# endif
# endif
clear_mods();

send_string_with_delay_P(PSTR("qmk"), TAP_CODE_DELAY);
if (temp_mod & MOD_MASK_SHIFT) { // if shift is held, flash rather than compile
SEND_STRING_DELAY(" flash ", TAP_CODE_DELAY);
} else
{
} else {
SEND_STRING_DELAY(" compile ", TAP_CODE_DELAY);
}
SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP SS_TAP(X_ENTER), TAP_CODE_DELAY);
Expand Down

0 comments on commit 427e50b

Please sign in to comment.