def update(self):
        while self.is_alive:
            pre_serial_list = self.serial_list
            self.serial_list = serial_port.list_serial_ports()
            if self.serial_list != pre_serial_list:
                serial_port.check_target_serial_port()
                if self.func:
                    self.func()
            time.sleep(1)
dataset/ETHPy150Open Robot-Will/Stino/stino/pyarduino/base/serial_listener.py/SerialListener.update/original