UART (Windows): fix uart_flush_input format
This patch allow uart files to be compiled under Windows, it adds a 'wait' parameter but do not use it. Please note that patch fixes compilation but do not add any feature to Windows support
This commit is contained in:
parent
76a85ce84b
commit
d89affd819
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ uart_close(const serial_port sp)
|
|||
}
|
||||
|
||||
void
|
||||
uart_flush_input(const serial_port sp)
|
||||
uart_flush_input(const serial_port sp, bool wait)
|
||||
{
|
||||
PurgeComm(((struct serial_port_windows *) sp)->hPort, PURGE_RXABORT | PURGE_RXCLEAR);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue