@@ -58,22 +58,22 @@ public class FirmwareInstallation extends JDialog {
5858 private JCheckBox chckbxReboot ;
5959 private JTextField textVersion ;
6060
61- public FirmwareInstallation (Node node , FirmwareUpdateUI remoteConfig ) throws Exception {
61+ public FirmwareInstallation (Node node , FirmwareUpdateUI firmwareUpdateUI ) throws Exception {
6262 InitComponents ();
6363 CreateEvents ();
6464
6565 setTitle ("Workflow Firmware Installation" );
6666 textNodeInfo .setText (node .toString ());
6767
68- remoteConfig .sendUDP (node , "!tftp#1" );
68+ firmwareUpdateUI .sendUDP (node , "!tftp#1" );
6969
7070 try {
7171 Thread .sleep (500 );
7272 } catch (InterruptedException e1 ) {
7373 e1 .printStackTrace ();
7474 }
7575
76- final String tftpServer = remoteConfig .requestUDP (node , "?tftp#" );
76+ final String tftpServer = firmwareUpdateUI .requestUDP (node , "?tftp#" );
7777
7878 chckbxTFTPOn .setSelected (tftpServer .contains ("On" ));
7979
@@ -96,15 +96,15 @@ public void run() {
9696
9797 System .out .println ("TFTP Client Closed with result " + frame .result ());
9898
99- remoteConfig .sendUDP (node , "!tftp#0" );
99+ firmwareUpdateUI .sendUDP (node , "!tftp#0" );
100100
101101 try {
102102 Thread .sleep (500 );
103103 } catch (InterruptedException e1 ) {
104104 e1 .printStackTrace ();
105105 }
106106
107- final String tftpServer = remoteConfig .requestUDP (node , "?tftp#" );
107+ final String tftpServer = firmwareUpdateUI .requestUDP (node , "?tftp#" );
108108
109109 chckbxTFTPOff .setSelected (!tftpServer .contains ("On" ));
110110
@@ -113,7 +113,7 @@ public void run() {
113113 } else {
114114 if (frame .result () > 0 ) {
115115 chckbxReboot .setSelected (true );
116- remoteConfig .sendUDP (node , "?reboot##" );
116+ firmwareUpdateUI .sendUDP (node , "?reboot##" );
117117 String version ;
118118 String progress = "" ;
119119
@@ -126,13 +126,13 @@ public void run() {
126126 } catch (InterruptedException e ) {
127127 e .printStackTrace ();
128128 }
129- version = remoteConfig .requestUDP (node , "?version#" );
129+ version = firmwareUpdateUI .requestUDP (node , "?version#" );
130130 System .out .println ("[" + version + "]" );
131131 } while (version .contains ("tftp" ) || (version .contains ("ERROR" )));
132132
133133 textVersion .setForeground (Color .BLUE );
134134 textVersion .setText (version .substring (version .indexOf ("[" )));
135- remoteConfig .constructTree ();
135+ firmwareUpdateUI .constructTree ();
136136 }
137137 }
138138 }
0 commit comments