|
|
@ -78,7 +78,7 @@ public class DealDataJob { |
|
|
|
Constant.FLAG = true; |
|
|
|
Constant.FLAG = true; |
|
|
|
log.info("------Constant.WEB_FLAG==" + false + "------"); |
|
|
|
log.info("------Constant.WEB_FLAG==" + false + "------"); |
|
|
|
for (int i = 1; i <= 4; i++) { |
|
|
|
for (int i = 1; i <= 4; i++) { |
|
|
|
if (!Constant.WEB_FLAG) { |
|
|
|
if (Constant.WEB_FLAG) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
String threadName; |
|
|
|
String threadName; |
|
|
@ -94,7 +94,7 @@ public class DealDataJob { |
|
|
|
} |
|
|
|
} |
|
|
|
CountDownLatch countDownLatch = new CountDownLatch(10); |
|
|
|
CountDownLatch countDownLatch = new CountDownLatch(10); |
|
|
|
for (int j = 1; j < 11; j++) { |
|
|
|
for (int j = 1; j < 11; j++) { |
|
|
|
if (!Constant.WEB_FLAG) { |
|
|
|
if (Constant.WEB_FLAG) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
SerialPortThread myThread = new SerialPortThread(); |
|
|
|
SerialPortThread myThread = new SerialPortThread(); |
|
|
|