Initilializing a device which uses SerialCommunication opens the com although it is not supposed to
Example: in file examples/mbw973_examples.py, the device com is opened on line 13 mbw = MBW973({'port': 'COM3'})
, although is should be opened only on line 16 mbw.start()
Cause: in file hvl_ccb/comm/serial.py, line 102 with serial.serial_for_url(self.config.port, do_not_open=True) as self.ser:
opens the serial communication because of the __enter__
method of the SerialBase class of the pyserial package.
Edited by Ghost User