(self)
Whether a char is present in buffer. For ON COM(n).
Whether a char is present in buffer. For ON COM(n).
Whether a char is present in buffer . For ON COM ( n ) .
def char_waiting(self):
        """Whether a char is present in buffer. For ON COM(n)."""
        if not self._serial:
            return False
        with safe_io():
            # ON COM can be set without any OPEN statement
            # so we need to ensure the serial port is opened before querying it
            if not self._serial.is_open:
                self._serial.open()
            return self._serial.in_waiting
def char_waiting ( self ) : if not self . _serial : return False with safe_io ( ) : # ON COM can be set without any OPEN statement # so we need to ensure the serial port is opened before querying it if not self . _serial . is_open : self . _serial . open ( ) return self . _serial . in_waiting