From 860518d3796b29016947c849641837b8d31ed161 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Mon, 8 Feb 2021 23:31:22 +0000 Subject: [PATCH] sensors: Trim the child name. Missed that :) --- src/bin/system/machine/sensors.bogox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/system/machine/sensors.bogox b/src/bin/system/machine/sensors.bogox index 3c35192..eff3a98 100644 --- a/src/bin/system/machine/sensors.bogox +++ b/src/bin/system/machine/sensors.bogox @@ -208,7 +208,7 @@ system_sensors_thermal_get(int *sensor_count) snprintf(buf, sizeof(buf), "%s/temp%d_label", link, id); sensor->child_name = file_contents(buf); if (sensor->child_name) - strimmer(sensor->name); + strimmer(sensor->child_name); snprintf(buf, sizeof(buf), "%s/temp%d_input", link, id); sensor->path = strdup(buf);