SERIAL: Make sure to properly initialize break status on serial reads
This commit is contained in:
parent
ba962252b0
commit
7200825da1
1 changed files with 1 additions and 0 deletions
|
@ -845,6 +845,7 @@ DWORD commerrors;
|
|||
COMSTAT cs;
|
||||
char *bptr;
|
||||
|
||||
memset (brk, 0, count); /* start with no break indicators */
|
||||
if (!ClearCommError (port->hPort, &commerrors, &cs)) { /* get the comm error flags */
|
||||
sim_error_serial ("ClearCommError", /* function failed; report unexpected error */
|
||||
(int) GetLastError ());
|
||||
|
|
Loading…
Add table
Reference in a new issue