From 81ce8e18bdc8506ffc2c3559116ade0f1d892406 Mon Sep 17 00:00:00 2001 From: nokyan Date: Tue, 24 Dec 2024 06:39:49 +0100 Subject: [PATCH] Add Raspberry Pi hwmon and thermal zone names --- src/utils/cpu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/cpu.rs b/src/utils/cpu.rs index df3e871..519ff7b 100644 --- a/src/utils/cpu.rs +++ b/src/utils/cpu.rs @@ -7,9 +7,9 @@ use std::{ sync::LazyLock, }; -const KNOWN_HWMONS: &[&str] = &["zenpower", "coretemp", "k10temp"]; +const KNOWN_HWMONS: &[&str] = &["rp1_adc", "zenpower", "coretemp", "k10temp"]; -const KNOWN_THERMAL_ZONES: &[&str] = &["x86_pkg_temp", "acpitz"]; +const KNOWN_THERMAL_ZONES: &[&str] = &["cpu-thermal", "x86_pkg_temp", "acpitz"]; static RE_LSCPU_MODEL_NAME: Lazy = lazy_regex!(r"Model name:\s*(.*)");