mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-07-04 21:28:53 +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"
|
||||
|
||||
float getTemperature()
|
||||
int getTemperature()
|
||||
{
|
||||
float tempC = -1.0f;
|
||||
temp_sensor_read_celsius(&tempC);
|
||||
return tempC;
|
||||
return static_cast<int>(round(tempC));
|
||||
}
|
||||
|
||||
int8_t getWiFiStrength()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue