qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit e0ecc53f4e0852796e16b170851fa396ab9ae854
parent 26203401a1748daf664eb3e811aaf9cf0b3a7b5e
Author: fauxpark <fauxpark@gmail.com>
Date:   Mon, 20 May 2019 02:46:41 +1000

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:
quantum/quantum.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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: