From d9476f114e46a089ed14fecea8130807fdf0c8be Mon Sep 17 00:00:00 2001 From: demetz Date: Sat, 20 May 2023 12:39:41 +0200 Subject: [PATCH] consider negative values for flow and power flow can be negative power can also be negative, for example if return temperature > supply temperature or flow is reversed --- src/driver_ultraheat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver_ultraheat.cc b/src/driver_ultraheat.cc index 064ed52..da79a4b 100644 --- a/src/driver_ultraheat.cc +++ b/src/driver_ultraheat.cc @@ -62,7 +62,7 @@ namespace "The current power consumption.", DEFAULT_PRINT_PROPERTIES, Quantity::Power, - VifScaling::Auto, + VifScaling::AutoSigned, FieldMatcher::build() .set(MeasurementType::Instantaneous) .set(VIFRange::PowerW) @@ -73,7 +73,7 @@ namespace "The current heat media volume flow.", DEFAULT_PRINT_PROPERTIES, Quantity::Flow, - VifScaling::Auto, + VifScaling::AutoSigned, FieldMatcher::build() .set(MeasurementType::Instantaneous) .set(VIFRange::VolumeFlow)