From eccb81ae1389a336b444a9119e8c16e9d9fb6996 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sun, 6 Oct 2024 21:00:59 +0200 Subject: [PATCH] Enhance comments (#1268) --- packages/examples/src/examples/MeasuredSocketDevice.ts | 3 ++- .../ElectricalEnergyMeasurementServer.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/examples/src/examples/MeasuredSocketDevice.ts b/packages/examples/src/examples/MeasuredSocketDevice.ts index d50e3f4b40..2ee9a602bd 100644 --- a/packages/examples/src/examples/MeasuredSocketDevice.ts +++ b/packages/examples/src/examples/MeasuredSocketDevice.ts @@ -108,7 +108,8 @@ const fakeMeasurementTimer = Time.getPeriodicTimer("fakeMeasurement", 10_000, as voltage: voltage * 1000, frequency: frequency * 1000, }, - // For Energy Measurement the set could be done this way but then you need to take about needed events to be sent yourself! + // For Energy Measurement the set could be done this way but this would only update the values as provided. + // The required events needs to be triggered manually. /* electricalEnergyMeasurement: { cumulativeEnergyImported: { diff --git a/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts b/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts index f3b24cb3e5..5b7ede9197 100644 --- a/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts +++ b/packages/node/src/behaviors/electrical-energy-measurement/ElectricalEnergyMeasurementServer.ts @@ -42,7 +42,7 @@ type AtomicElectricalEnergyMeasurement = { export class ElectricalEnergyMeasurementServerLogic extends ElectricalEnergyMeasurementServerBase { /** * Convenience method to set the measurement values for the cluster in an atomic way. This method updates the - * attributes and also sends the events for the imported and exported energy values. + * attributes with the provided data and also sends the events for the imported and exported energy values. */ setMeasurement(measurement: AtomicElectricalEnergyMeasurement) { if (this.features.cumulativeEnergy) {