mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-06-14 20:29:41 +08:00
comment
This commit is contained in:
@@ -132,7 +132,7 @@ public class YunKuaiChongV150RealTimeDataULCmd extends YunKuaiChongUplinkCmdExe
|
|||||||
List<String> faults = getFaultDescriptions(parseFaults(warnCodeBytes));
|
List<String> faults = getFaultDescriptions(parseFaults(warnCodeBytes));
|
||||||
|
|
||||||
// 抢状态
|
// 抢状态
|
||||||
GunRunStatus gunRunStatus = parseGUnRunStatus(gunStatus, gunInsert, tradeNo);
|
GunRunStatus gunRunStatus = parseGunRunStatus(gunStatus, gunInsert, tradeNo);
|
||||||
GunRunStatusProto.Builder gunRunStatusProtoBuilder = GunRunStatusProto.newBuilder()
|
GunRunStatusProto.Builder gunRunStatusProtoBuilder = GunRunStatusProto.newBuilder()
|
||||||
.setTs(ts)
|
.setTs(ts)
|
||||||
.setPileCode(pileCode)
|
.setPileCode(pileCode)
|
||||||
@@ -173,9 +173,9 @@ public class YunKuaiChongV150RealTimeDataULCmd extends YunKuaiChongUplinkCmdExe
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 解释枪运行状态
|
* 解析枪运行状态
|
||||||
*/
|
*/
|
||||||
private static GunRunStatus parseGUnRunStatus(int gunStatus, int gunInsert, String tradeNo) {
|
private static GunRunStatus parseGunRunStatus(int gunStatus, int gunInsert, String tradeNo) {
|
||||||
GunRunStatus gunRunStatus = GunRunStatus.UNKNOWN;
|
GunRunStatus gunRunStatus = GunRunStatus.UNKNOWN;
|
||||||
if (gunStatus == 0) {
|
if (gunStatus == 0) {
|
||||||
gunRunStatus = GunRunStatus.FAULT;
|
gunRunStatus = GunRunStatus.FAULT;
|
||||||
|
|||||||
Reference in New Issue
Block a user