Skip to content

Commit

Permalink
Fixed Reactive power listener in AsyncMeter (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
kscholty authored Oct 25, 2021
1 parent 89ddc04 commit 1e9dcce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ public static void initializePowerSumChannels(AsymmetricMeter meter) {
final Consumer<Value<Integer>> reactivePowerSum = ignore -> {
meter._setReactivePower(TypeUtils.sum(//
meter.getReactivePowerL1Channel().getNextValue().get(), //
meter.getReactivePowerL1Channel().getNextValue().get(), //
meter.getReactivePowerL1Channel().getNextValue().get())); //
meter.getReactivePowerL2Channel().getNextValue().get(), //
meter.getReactivePowerL3Channel().getNextValue().get())); //
};
meter.getReactivePowerL1Channel().onSetNextValue(reactivePowerSum);
meter.getReactivePowerL2Channel().onSetNextValue(reactivePowerSum);
Expand Down

0 comments on commit 1e9dcce

Please sign in to comment.