Add rp1_adc to CPU chip detection in sensors parser

The host-agent's isCPUChip function was missing rp1_adc (Raspberry Pi RP1 ADC),
which is already detected in the monitoring package. This sync ensures consistent
CPU temperature chip detection across both code paths.
This commit is contained in:
rcourtman
2025-12-01 09:45:39 +00:00
parent b2659ef6a8
commit a371c3737e
2 changed files with 2 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ func isCPUChip(chipLower string) bool {
"it87", "nct6687", "nct6775", "nct6776", "nct6779",
"nct6791", "nct6792", "nct6793", "nct6795", "nct6796",
"nct6797", "nct6798", "w83627", "f71882",
"cpu_thermal", "rpitemp",
"cpu_thermal", "rp1_adc", "rpitemp",
}
for _, chip := range cpuChips {

View File

@@ -344,6 +344,7 @@ func TestIsCPUChip(t *testing.T) {
{"nct6775-isa-0290", true},
{"cpu_thermal-virtual-0", true},
{"acpitz-acpi-0", true},
{"rp1_adc-isa-0000", true}, // Raspberry Pi RP1 ADC
{"nvme-pci-0100", false},
{"amdgpu-pci-0300", false},
{"unknown-chip", false},