From 28a044032c63dba15b054ee0a524a953bf1808e8 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Lavado Villa <lflavado@laas.fr> Date: Thu, 13 Jul 2023 12:59:03 +0000 Subject: [PATCH] Updated data objects with the latest version of data acquisition function calls This merge request addresses the issue #56 --- .../zephyr/src/data_objects.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zephyr/modules/owntech_communication/zephyr/src/data_objects.cpp b/zephyr/modules/owntech_communication/zephyr/src/data_objects.cpp index e00a9e3..5dd0905 100644 --- a/zephyr/modules/owntech_communication/zephyr/src/data_objects.cpp +++ b/zephyr/modules/owntech_communication/zephyr/src/data_objects.cpp @@ -53,12 +53,12 @@ void dataObjectsUpdateMeasures() { if (dataAcquisition.started() == true) { - v1_low_value = dataAcquisition.peekV1Low(); - v2_low_value = dataAcquisition.peekV2Low(); - v_high_value = dataAcquisition.peekVHigh(); - i1_low_value = dataAcquisition.peekI1Low(); - i2_low_value = dataAcquisition.peekI2Low(); - i_high_value = dataAcquisition.peekIHigh(); + v1_low_value = dataAcquisition.peek(V1_LOW); + v2_low_value = dataAcquisition.peek(V2_LOW); + v_high_value = dataAcquisition.peek(V_HIGH); + i1_low_value = dataAcquisition.peek(I1_LOW); + i2_low_value = dataAcquisition.peek(I2_LOW); + i_high_value = dataAcquisition.peek(I_HIGH); // Do not update this value for now, as the measure is not enabled //temp_value = peekTemperature(); } -- GitLab