1
0
Fork 0

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
This commit is contained in:
fauxpark 2019-05-20 02:46:41 +10:00 committed by Drashna Jaelre
parent 26203401a1
commit e0ecc53f4e

View file

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