BV UART: fix escape count

This commit is contained in:
King Kévin 2018-02-06 11:56:18 +01:00
parent aa4548def5
commit b1ce81eeda
1 changed files with 1 additions and 1 deletions

View File

@ -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
}