pcom_serial.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Parlay 作者: PromenadeSoftware 项目源码 文件源码
def connectionLost(self, reason=connectionDone):
        """
        Overridden function that is called when the connected port is disconnected. Simply sets the
        self.is_port_attached flag to False so that we know we have been disconnected from the target embedded
        board.
        :param reason: Reason for disconnection. Of Twisted failure type.
        :return:
        """
        self.is_port_attached = False
        LineReceiver.connectionLost(self, reason)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号