Update version 0.2.1alpha

Get text from the right part of the combo box for serial port.
pull/98/head
Rune B. Broberg 2019-11-16 14:59:48 +01:00
rodzic 311b959d83
commit 30690cf22b
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -528,7 +528,7 @@ class NanoVNASaver(QtWidgets.QWidget):
def rescanSerialPort(self):
self.serialPortInput.clear()
for port in self.getPort():
self.serialPortInput.insertItem(1,port)
self.serialPortInput.insertItem(1, port)
# Get that windows port
@staticmethod
@ -625,7 +625,7 @@ class NanoVNASaver(QtWidgets.QWidget):
def startSerial(self):
if self.serialLock.acquire():
self.serialPort = self.serialPortInput.text()
self.serialPort = self.serialPortInput.currentText()
logger.info("Opening serial port %s", self.serialPort)
try:
self.serial = serial.Serial(port=self.serialPort, baudrate=115200)

Wyświetl plik

@ -14,5 +14,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
version = '0.2.0'
version = '0.2.1alpha'
debug = False