Update comm_serial_sys.c
authordragonuaix <58971482+dragonuaix@users.noreply.github.com>
Thu, 26 Dec 2019 14:48:00 +0000 (16:48 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Dec 2019 14:48:00 +0000 (16:48 +0200)
winpr/libwinpr/comm/comm_serial_sys.c

index 16a6ce3..767b160 100644 (file)
@@ -1318,7 +1318,7 @@ static BOOL _get_commstatus(WINPR_COMM* pComm, SERIAL_STATUS* pCommstatus)
 
        if (currentCounters.rx != pComm->counters.rx)
        {
-               pComm->PendingEvents |= SERIAL_EV_RXFLAG;
+               pComm->PendingEvents |= SERIAL_EV_RXFLAG | SERIAL_EV_RXCHAR;
        }
 
        if ((currentCounters.tx != pComm->counters.tx) && /* at least a transmission occurred AND ...*/