Exemplo n.º 1
0
    def update_terminal(self):
        buf_len = openmv.tx_buf_len()
        buf = openmv.tx_buf(buf_len)
        buffer = self.terminal.get_buffer()
        try:
            buffer.insert(buffer.get_end_iter(), buf)
        except:
            return False

        return True
Exemplo n.º 2
0
    def update_terminal(self):
        buf_len = openmv.tx_buf_len()
        buf = openmv.tx_buf(buf_len)
        buffer = self.terminal.get_buffer()
        try:
            buffer.insert(buffer.get_end_iter(), buf)
        except:
            return False

        return True
Exemplo n.º 3
0
    def update_terminal(self):
        if (self.connected):
            try:
                buf_len = openmv.tx_buf_len()
                if (buf_len):
                    buf = openmv.tx_buf(buf_len)
                    buffer = self.terminal.get_buffer()
                    buffer.insert(buffer.get_end_iter(), buf)
            except:
                pass

        return True
Exemplo n.º 4
0
    def update_terminal(self):
        if (self.connected):
            try:
                buf_len = openmv.tx_buf_len()
                if (buf_len):
                    buf = openmv.tx_buf(buf_len)
                    buffer = self.terminal.get_buffer()
                    buffer.insert(buffer.get_end_iter(), buf)
            except:
                pass

        return True