

def inWaiting(self):
    'Return the number of characters currently in the input buffer.'
    flags = win32.DWORD()
    comstat = win32.COMSTAT()
    if (not win32.ClearCommError(flags.hComPort, ctypes.byref(flags), ctypes.byref(comstat))):
        raise SerialException('call to ClearCommError failed')
    return comstat.cbInQue

dataset/ETHPy150Open Robot-Will/Stino/stino/pyarduino/base/pyserial/serialwin32.py Win32Serial.inWaiting/VarMisuse@35/66 `self`->`flags`