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()