kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Update version 0.2.1alpha
Get text from the right part of the combo box for serial port.pull/98/head
rodzic
311b959d83
commit
30690cf22b
|
@ -528,7 +528,7 @@ class NanoVNASaver(QtWidgets.QWidget):
|
||||||
def rescanSerialPort(self):
|
def rescanSerialPort(self):
|
||||||
self.serialPortInput.clear()
|
self.serialPortInput.clear()
|
||||||
for port in self.getPort():
|
for port in self.getPort():
|
||||||
self.serialPortInput.insertItem(1,port)
|
self.serialPortInput.insertItem(1, port)
|
||||||
|
|
||||||
# Get that windows port
|
# Get that windows port
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -625,7 +625,7 @@ class NanoVNASaver(QtWidgets.QWidget):
|
||||||
|
|
||||||
def startSerial(self):
|
def startSerial(self):
|
||||||
if self.serialLock.acquire():
|
if self.serialLock.acquire():
|
||||||
self.serialPort = self.serialPortInput.text()
|
self.serialPort = self.serialPortInput.currentText()
|
||||||
logger.info("Opening serial port %s", self.serialPort)
|
logger.info("Opening serial port %s", self.serialPort)
|
||||||
try:
|
try:
|
||||||
self.serial = serial.Serial(port=self.serialPort, baudrate=115200)
|
self.serial = serial.Serial(port=self.serialPort, baudrate=115200)
|
||||||
|
|
|
@ -14,5 +14,5 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
version = '0.2.0'
|
version = '0.2.1alpha'
|
||||||
debug = False
|
debug = False
|
||||||
|
|
Ładowanie…
Reference in New Issue