mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
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:
parent
26203401a1
commit
e0ecc53f4e
1 changed files with 5 additions and 1 deletions
|
@ -312,8 +312,12 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||||
return false;
|
return false;
|
||||||
case DEBUG:
|
case DEBUG:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
debug_enable = true;
|
debug_enable ^= 1;
|
||||||
|
if (debug_enable) {
|
||||||
print("DEBUG: enabled.\n");
|
print("DEBUG: enabled.\n");
|
||||||
|
} else {
|
||||||
|
print("DEBUG: disabled.\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case EEPROM_RESET:
|
case EEPROM_RESET:
|
||||||
|
|
Loading…
Reference in a new issue