mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
Merge pull request #58 from HendrikRauh:57-Temperature-seems-not-right
Temperature converted to int
This commit is contained in:
commit
a82934eb72
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
|
|
||||||
float getTemperature()
|
int getTemperature()
|
||||||
{
|
{
|
||||||
float tempC = -1.0f;
|
float tempC = -1.0f;
|
||||||
temp_sensor_read_celsius(&tempC);
|
temp_sensor_read_celsius(&tempC);
|
||||||
return tempC;
|
return static_cast<int>(round(tempC));
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t getWiFiStrength()
|
int8_t getWiFiStrength()
|
||||||
|
|
Loading…
Add table
Reference in a new issue