mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 01:52:05 -05:00
1. Added comport list as per OS type
2. Adjusted layout od devsetup dialog git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3100 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
df3e97889a
commit
2fa5a07fd5
21
devsetup.cpp
21
devsetup.cpp
@ -152,6 +152,27 @@ void DevSetup::initDlg()
|
||||
ui.stopBitsComboBox->setCurrentIndex(m_stopBitsIndex);
|
||||
ui.handshakeComboBox->setCurrentIndex(m_handshakeIndex);
|
||||
|
||||
// PY2SDR -- Per OS serial port names
|
||||
ui.catPortComboBox->clear();
|
||||
ui.catPortComboBox->addItem("None");
|
||||
#ifdef WIN32
|
||||
for ( int i = 1; i < 100; i++ ) {
|
||||
ui.catPortComboBox->addItem("COM" + QString::number(i));
|
||||
}
|
||||
ui.catPortComboBox->addItem("USB");
|
||||
#else
|
||||
ui.catPortComboBox->addItem("/dev/ttyS0");
|
||||
ui.catPortComboBox->addItem("/dev/ttyS1");
|
||||
ui.catPortComboBox->addItem("/dev/ttyS2");
|
||||
ui.catPortComboBox->addItem("/dev/ttyS3");
|
||||
ui.catPortComboBox->addItem("/dev/ttyUSB0");
|
||||
ui.catPortComboBox->addItem("/dev/ttyUSB1");
|
||||
ui.catPortComboBox->addItem("/dev/ttyUSB2");
|
||||
ui.catPortComboBox->addItem("/dev/ttyUSB3");
|
||||
#endif
|
||||
ui.catPortComboBox->setCurrentIndex(m_catPortIndex);
|
||||
|
||||
|
||||
ui.macro1->setText(m_macro[0].toUpper());
|
||||
ui.macro2->setText(m_macro[1].toUpper());
|
||||
ui.macro3->setText(m_macro[2].toUpper());
|
||||
|
4508
devsetup.ui
4508
devsetup.ui
File diff suppressed because it is too large
Load Diff
@ -51,7 +51,8 @@ subroutine jt9a
|
||||
|
||||
100 inquire(file=trim(cwd)//'/.lock',exist=fileExists)
|
||||
if(fileExists) go to 10
|
||||
call sleep_msec(100)
|
||||
!call sleep_msec(100)
|
||||
call usleep(100*1000)
|
||||
go to 100
|
||||
|
||||
999 return
|
||||
|
Loading…
Reference in New Issue
Block a user