Move more UART-based keyboards to use timeout correctly. (#17329)

Co-authored-by: Tomasz Janeczko <tomasz.j@hey.com>
This commit is contained in:
Tomasz Janeczko 2022-06-08 22:51:41 +01:00 committed by GitHub
parent f6a7bf2a83
commit 6567b21688
Failed to generate hash of commit
13 changed files with 111 additions and 31 deletions

View file

@ -34,7 +34,7 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
//trust the external keystates entirely, erase the last data
uint8_t uart_data[11] = {0};
//there are 14 bytes corresponding to 14 columns, and an end byte
//there are 10 bytes corresponding to 10 columns, and then an end byte
for (uint8_t i = 0; i < 11; i++) {
//wait for the serial data, timeout if it's been too long
//this only happened in testing with a loose wire, but does no