BV UART: fix escape count
This commit is contained in:
parent
aa4548def5
commit
b1ce81eeda
|
@ -289,9 +289,9 @@ static void busvoodoo_uart_command_transceive(void* argument)
|
|||
if (0x1b!=last_c) { // this is the first escape press
|
||||
esc_count = 0;
|
||||
}
|
||||
last_c = c; // remember key press
|
||||
esc_count++; // increment escape count
|
||||
}
|
||||
last_c = c; // remember key press
|
||||
usart_send_blocking(USART(BUSVOODOO_USART_ID), c); // send user character
|
||||
busvoodoo_led_red(100); // enable red LED to show transmission
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue