

def setDTR(self, level=1):
    'Set terminal status line: Data Terminal Ready'
    if (not level.hComPort):
        raise portNotOpenError
    if level:
        self._dtrState = win32.DTR_CONTROL_ENABLE
        win32.EscapeCommFunction(self.hComPort, win32.SETDTR)
    else:
        self._dtrState = win32.DTR_CONTROL_DISABLE
        win32.EscapeCommFunction(self.hComPort, win32.CLRDTR)

dataset/ETHPy150Open Robot-Will/Stino/stino/pyarduino/base/pyserial/serialwin32.py Win32Serial.setDTR/VarMisuse@19/37 `self`->`level`