windows port: fix uart_receive() under Win32 platform
This commit is contained in:
parent
d37b917352
commit
2e630f7e0f
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ uart_receive (serial_port sp, byte_t * pbtRx, const size_t szRx, void * abort_p)
|
||||||
|
|
||||||
volatile bool * abort_flag_p = (volatile bool *)abort_p;
|
volatile bool * abort_flag_p = (volatile bool *)abort_p;
|
||||||
do {
|
do {
|
||||||
res = ReadFile (((serial_port_windows *) sp)->hPort, pbtRx + received_bytes_count,
|
res = ReadFile (((serial_port_windows *) sp)->hPort, pbtRx + dwTotalBytesReceived,
|
||||||
dwBytesToGet,
|
dwBytesToGet,
|
||||||
&dwBytesReceived, NULL);
|
&dwBytesReceived, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue