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