Ooops incorrect comparison
This commit is contained in:
parent
553a6c518e
commit
1bc4fcfa23
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ bool BatteryPlugin::receivePackage(const NetworkPackage& np)
|
||||||
int currentCharge = np.get<int>("currentCharge");
|
int currentCharge = np.get<int>("currentCharge");
|
||||||
int thresholdEvent = np.get<int>("thresholdEvent", (int)ThresholdNone);
|
int thresholdEvent = np.get<int>("thresholdEvent", (int)ThresholdNone);
|
||||||
|
|
||||||
if (batteryDbusInterface->isCharging() != currentCharge
|
if (batteryDbusInterface->charge() != currentCharge
|
||||||
|| batteryDbusInterface->isCharging() != isCharging
|
|| batteryDbusInterface->isCharging() != isCharging
|
||||||
) {
|
) {
|
||||||
batteryDbusInterface->updateValues(isCharging, currentCharge);
|
batteryDbusInterface->updateValues(isCharging, currentCharge);
|
||||||
|
|
Loading…
Reference in a new issue