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