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:
Jiapeng Li 2013-12-08 14:15:36 +01:00 committed by Romuald Conty
parent 76a85ce84b
commit d89affd819

View file

@ -113,7 +113,7 @@ uart_close(const serial_port sp)
} }
void 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); PurgeComm(((struct serial_port_windows *) sp)->hPort, PURGE_RXABORT | PURGE_RXCLEAR);
} }