Add support for temperatures in tenths of a degree Celsius
Change-Id: I3aa7c3d193715b8c309a99afd23e753a559e3083
diff --git a/data.cpp b/data.cpp
index 0e46b3b..0d05c3d 100644
--- a/data.cpp
+++ b/data.cpp
@@ -903,7 +903,9 @@
convert_temp = strtoul(results.c_str(), NULL, 0) / 1000;
if (convert_temp <= 0)
convert_temp = strtoul(results.c_str(), NULL, 0);
- cpuSecCheck = curTime.tv_sec + 5;
+ if (convert_temp >= 150)
+ convert_temp = strtoul(results.c_str(), NULL, 0) / 10;
+ cpuSecCheck = curTime.tv_sec + 5;
}
value = TWFunc::to_string(convert_temp);
return 0;