From 81cd8bd290d22de1091981f727acde9e290b0d37 Mon Sep 17 00:00:00 2001 From: "mikael.senger" Date: Sun, 15 Dec 2024 23:52:32 +0100 Subject: [PATCH] did not build before --- src/fsfw/thermal/TemperatureSensor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fsfw/thermal/TemperatureSensor.h b/src/fsfw/thermal/TemperatureSensor.h index 4cb2a083..cab44f4c 100644 --- a/src/fsfw/thermal/TemperatureSensor.h +++ b/src/fsfw/thermal/TemperatureSensor.h @@ -142,7 +142,7 @@ class TemperatureSensor : public AbstractTemperatureSensor { deltaTime = (uptime.tv_sec + uptime.tv_usec / 1000000.) - (uptimeOfOldTemperature.tv_sec + uptimeOfOldTemperature.tv_usec / 1000000.); - deltaTemp = oldTemperature - outputTemperature; + deltaTemp = oldTemperature - outputTemperature.value; if (deltaTemp < 0) { deltaTemp = -deltaTemp; } @@ -160,13 +160,13 @@ class TemperatureSensor : public AbstractTemperatureSensor { outputTemperature.setValid(PoolVariableIF::INVALID); outputTemperature = thermal::INVALID_TEMPERATURE; } else { - oldTemperature = outputTemperature; + oldTemperature = outputTemperature.value; uptimeOfOldTemperature = uptime; } } public: - float getTemperature() { return outputTemperature; } + float getTemperature() { return outputTemperature.value; } bool isValid() { return outputTemperature.isValid(); }