Skip to content

Commit

Permalink
Add bad names
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jan 23, 2022
1 parent cee923f commit ee588d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/config_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ If you define these options you will disable the associated feature, which can s
* disable debugging
* `#define NO_PRINT`
* disable printing/debugging using hid_listen
* `#define NO_RESET`
* disable `RESET` keycode
* `#define NO_COMPILE_KEYCODE`
* disable the `QK_MAKE` keycode
* `#define NO_ACTION_LAYER`
* disable layers
* `#define NO_ACTION_TAPPING`
Expand Down
10 changes: 6 additions & 4 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@ bool process_record_quantum(keyrecord_t *record) {
oneshot_disable();
break;
#endif
#if defined(QMK_KEYBOARD) && defined(QMK_KEYMAP) // tests don't generate these defines
case QK_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
#ifndef NO_COMPILE_KEYCODE
# if defined(QMK_KEYBOARD) && defined(QMK_KEYMAP) // tests don't generate these defines
case QK_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
{
uint8_t temp_mod = mod_config(get_mods()) | mod_config(get_oneshot_mods());
clear_mods();
Expand All @@ -359,11 +360,12 @@ bool process_record_quantum(keyrecord_t *record) {
send_string_with_delay_P(PSTR(" compile "), TAP_CODE_DELAY);
}
send_string_with_delay_P(PSTR("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP), TAP_CODE_DELAY);
# ifdef CONVERT_TO_PROTON_C // If CTPC is set, ensure it stays set
# ifdef CONVERT_TO_PROTON_C // If CTPC is set, ensure it stays set
send_string_with_delay_P(PSTR(" -e CTPC=yes"), TAP_CODE_DELAY);
# endif
# endif
send_string_with_delay_P(PSTR(SS_TAP(X_ENTER)), TAP_CODE_DELAY);
}
# endif
#endif
}
}
Expand Down

0 comments on commit ee588d2

Please sign in to comment.