Temperature converted to int

Fixes #57
This commit is contained in:
Hendrik Rauh 2024-12-19 23:13:41 +01:00
parent e3bc5f8bdc
commit 77b71433e5

View file

@ -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<int>(round(tempC));
}
int8_t getWiFiStrength()