Merge pull request #58 from HendrikRauh:57-Temperature-seems-not-right

Temperature converted to int
This commit is contained in:
Hendrik Rauh 2024-12-20 08:46:37 +01:00 committed by GitHub
commit a82934eb72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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