From eb36385a6bdfeb58eb9a441043b76948bf5d2e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 15 Dec 2020 13:46:46 +0100 Subject: LibSensors: restore temperature for Raspberry Pi sensors output: cpu_thermal-virtual-0 Adapter: Virtual device temp1: +58.0 C (crit = +90.0 C) --- linux/LibSensors.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/LibSensors.c') diff --git a/linux/LibSensors.c b/linux/LibSensors.c index cb3f1446..1e53882c 100644 --- a/linux/LibSensors.c +++ b/linux/LibSensors.c @@ -99,6 +99,9 @@ void LibSensors_getCPUTemperatures(CPUData* cpus, unsigned int cpuCount) { unsigned int tempId; if (String_startsWith(label, "Package ")) { tempId = 0; + } else if (String_startsWith(label, "temp")) { + /* Raspberry Pi has only temp1 */ + tempId = 0; } else if (String_startsWith(label, "Core ")) { tempId = 1 + atoi(label + strlen("Core ")); } else { -- cgit v1.2.3