Update NDCSocketConnectionAutoRun.java
This commit is contained in:
@@ -1025,10 +1025,10 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable {
|
||||
|
||||
public static List<String> getNDCFaultInfo(int errorCode) {
|
||||
if (errorCode == 0) {
|
||||
return Arrays.asList("正常");
|
||||
return Collections.singletonList("正常");
|
||||
} else {
|
||||
if (errorCode > Math.pow(2, ERROR.length - 1)) {
|
||||
return Arrays.asList("NDC上报故障代码有误");
|
||||
return Collections.singletonList("NDC上报故障代码有误");
|
||||
} else {
|
||||
int index = 0;
|
||||
ArrayList<String> faultInfo = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user