This commit is contained in:
ZZ 2021-08-18 17:29:36 +08:00
parent 3f277be412
commit dc73eb1ff8

View File

@ -115,8 +115,8 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler {
if (SERVICE_RMR.equals(serviceName) && OK.equals(resultCode)) {
setCachePileRM(pilekey);
} else if (SERVICE_HB.equals(serviceName) && OK.equals(resultCode)) {
Boolean timeconfigured = (Boolean) cachePile.get("tcfg");
if (!timeconfigured) {
Boolean tcfg = (Boolean) cachePile.get("tcfg");
if (!tcfg) {
Thread.sleep(500);
Date date = Calendar.getInstance().getTime();
String timebin = getTimeBin(seqHex(pilekey.concat("seqhex")), pileNo, date);