Remove clear matrix on ADB recv error
This commit is contained in:
parent
7e8a85caad
commit
cb434cfebc
2 changed files with 4 additions and 3 deletions
|
@ -100,9 +100,7 @@ uint8_t matrix_scan(void)
|
|||
} else if (codes == 0xFFFF) { // power key release
|
||||
register_key(0xFF);
|
||||
} else if (key0 == 0xFF) { // error
|
||||
if (debug_matrix) print("adb_host_kbd_recv: ERROR(matrix cleared.)\n");
|
||||
// clear matrix to unregister all keys
|
||||
for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00;
|
||||
xprintf("adb_host_kbd_recv: ERROR(%02X)\n", codes);
|
||||
return key1;
|
||||
} else {
|
||||
register_key(key0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue