diff options
author | fauxpark <fauxpark@gmail.com> | 2019-05-20 02:46:41 +1000 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-19 09:46:41 -0700 |
commit | e0ecc53f4e0852796e16b170851fa396ab9ae854 (patch) | |
tree | 3d390872bbd94bb427bd0789a7d0527342dd2807 /quantum | |
parent | 26203401a1748daf664eb3e811aaf9cf0b3a7b5e (diff) | |
download | qmk_firmware-e0ecc53f4e0852796e16b170851fa396ab9ae854.tar.gz |
Make DEBUG keycode disable as well as enable (#5898)
* Make DEBUG keycode disable as well as enable
* print() can always be used regardless of debug_enable state
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/quantum.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 473ead65f..23263b700 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -312,8 +312,12 @@ bool process_record_quantum(keyrecord_t *record) { return false; case DEBUG: if (record->event.pressed) { - debug_enable = true; + debug_enable ^= 1; + if (debug_enable) { print("DEBUG: enabled.\n"); + } else { + print("DEBUG: disabled.\n"); + } } return false; case EEPROM_RESET: |