Restore null check in RuleyLinkCommunicationManager
This commit is contained in:
parent
c1fc6d4864
commit
4dc3440637
1 changed files with 5 additions and 1 deletions
|
@ -413,7 +413,11 @@ public abstract class RileyLinkCommunicationManager {
|
||||||
lastGoodReceiverCommunicationTime = System.currentTimeMillis();
|
lastGoodReceiverCommunicationTime = System.currentTimeMillis();
|
||||||
|
|
||||||
sp.putLong(RileyLinkConst.Prefs.LastGoodDeviceCommunicationTime, lastGoodReceiverCommunicationTime);
|
sp.putLong(RileyLinkConst.Prefs.LastGoodDeviceCommunicationTime, lastGoodReceiverCommunicationTime);
|
||||||
getPumpStatus().setLastCommunicationToNow();
|
PumpStatus pumpStatus = getPumpStatus();
|
||||||
|
|
||||||
|
if(pumpStatus != null) {
|
||||||
|
pumpStatus.setLastCommunicationToNow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue