From 77b71433e5e59aa0a3ff13a684b7ebf515e20335 Mon Sep 17 00:00:00 2001 From: Hendrik Rauh <114620133+HendrikRauh@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:13:41 +0100 Subject: [PATCH] Temperature converted to int Fixes #57 --- src/routes/status.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/status.cpp b/src/routes/status.cpp index 4550c98..e25d21a 100644 --- a/src/routes/status.cpp +++ b/src/routes/status.cpp @@ -1,10 +1,10 @@ #include "status.h" -float getTemperature() +int getTemperature() { float tempC = -1.0f; temp_sensor_read_celsius(&tempC); - return tempC; + return static_cast(round(tempC)); } int8_t getWiFiStrength()