15 lines
428 B
Diff
15 lines
428 B
Diff
|
diff --git a/linux/Platform.c b/linux/Platform.c
|
||
|
index bde3e3b..e7e2010 100644
|
||
|
--- a/linux/Platform.c
|
||
|
+++ b/linux/Platform.c
|
||
|
@@ -175,6 +175,9 @@ int Platform_getCpuTemp() {
|
||
|
if (!fd) {
|
||
|
fd = fopen("/sys/devices/virtual/thermal/thermal_zone0/temp", "r");
|
||
|
}
|
||
|
+ if (!fd) {
|
||
|
+ fd = fopen("/sys/class/hwmon/hwmon0/temp1_input", "r");
|
||
|
+ }
|
||
|
if (fd) {
|
||
|
int n = fscanf(fd, "%d", &Temp);
|
||
|
fclose(fd);
|