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
pull/5923/head
fauxpark 6 years ago committed by Drashna Jaelre
parent 26203401a1
commit e0ecc53f4e

@ -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:

Loading…
Cancel
Save