summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-05-20 02:46:41 +1000
committerDrashna Jaelre <drashna@live.com>2019-05-19 09:46:41 -0700
commite0ecc53f4e0852796e16b170851fa396ab9ae854 (patch)
tree3d390872bbd94bb427bd0789a7d0527342dd2807 /quantum
parent26203401a1748daf664eb3e811aaf9cf0b3a7b5e (diff)
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 473ead65f4..23263b7007 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: