xt_usb: Change debug print
This commit is contained in:
parent
ea004061a5
commit
773a9195a6
1 changed files with 1 additions and 2 deletions
|
|
@ -120,6 +120,7 @@ uint8_t matrix_scan(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t code = xt_host_recv();
|
uint8_t code = xt_host_recv();
|
||||||
|
if (code) xprintf("%02X ", code);
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case INIT:
|
case INIT:
|
||||||
switch (code) {
|
switch (code) {
|
||||||
|
|
@ -131,10 +132,8 @@ uint8_t matrix_scan(void)
|
||||||
break;
|
break;
|
||||||
default: // normal key make
|
default: // normal key make
|
||||||
if (code < 0x80 && code != 0x00) {
|
if (code < 0x80 && code != 0x00) {
|
||||||
xprintf("make: %X\r\n", code);
|
|
||||||
matrix_make(code);
|
matrix_make(code);
|
||||||
} else if (code > 0x80 && code < 0xFF && code != 0x00) {
|
} else if (code > 0x80 && code < 0xFF && code != 0x00) {
|
||||||
xprintf("break %X\r\n", code);
|
|
||||||
matrix_break(code - 0x80);
|
matrix_break(code - 0x80);
|
||||||
}
|
}
|
||||||
state = INIT;
|
state = INIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue