Administrator
2022-09-26 adfe6f11917b51fa947435a41f2bff4ba972c6ad
修复连接不上汇集器bug
1个文件已修改
7 ■■■■ 已修改文件
src/main/main_window.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/main_window.java
@@ -430,7 +430,9 @@
        btn_connet.setEnabled(true);
        btn_connet.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                int comm_type = tab_comm_type.getSelectedIndex();
                //int comm_type = tab_comm_type.getSelectedIndex();
                int comm_type = 0;
                //System.out.println(comm_type+"====");
                String spname_or_ipaddr;
                int bitrate_or_ipport = Integer.parseInt((String)cb_comm_bitrate.getSelectedItem());
                
@@ -445,7 +447,7 @@
                    spname_or_ipaddr = tf_ip_addr.getText().trim();
                    bitrate_or_ipport = Integer.parseInt(tf_ip_port.getText().trim());
                }
                int main_DevType = main_TabbedPane.getSelectedIndex();
                boolean comm_open_res = true;
                int monomer_devType = cb_dev_type.getSelectedIndex();
@@ -476,6 +478,7 @@
                    int dev_addr = Integer.parseInt(tf_target_addr.getText().trim());
                    comm_open_res = panel_ZDHJ_base.openCommPort(comm_type, spname_or_ipaddr,
                                                                bitrate_or_ipport, dev_addr, m_Log);
                    System.out.println(comm_open_res);
                } else if(main_window.CommDevType_FBS9100 == main_DevType) {
                    int dev_addr = Integer.parseInt(tf_target_addr.getText().trim());
                    comm_open_res = panel_FBS9100_base.openCommPort(comm_type, spname_or_ipaddr,