reset flag when pump is changed
This commit is contained in:
parent
ff32764375
commit
3d238e3adb
|
@ -24,7 +24,8 @@ public class MsgSettingShippingInfo extends MessageBase {
|
|||
DanaRPlugin.getDanaRPump().shippingCountry = asciiStringFromBuff(bytes, 13, 3);
|
||||
if (DanaRPlugin.getDanaRPump().shippingDate.getTime() > new Date(116, 4, 1).getTime()) {
|
||||
DanaRPlugin.getDanaRPump().isNewPump = true;
|
||||
}
|
||||
} else
|
||||
DanaRPlugin.getDanaRPump().isNewPump = false;
|
||||
if (Config.logDanaMessageDetail) {
|
||||
log.debug("Serial number: " + DanaRPlugin.getDanaRPump().serialNumber);
|
||||
log.debug("Shipping date: " + DanaRPlugin.getDanaRPump().shippingDate);
|
||||
|
|
Loading…
Reference in a new issue