From a371c3737e60229ccbf43ceee57bc0edd8c2fd45 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 1 Dec 2025 09:45:39 +0000 Subject: [PATCH] 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. --- internal/sensors/parser.go | 2 +- internal/sensors/parser_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/sensors/parser.go b/internal/sensors/parser.go index 331b4e312..d60299e7e 100644 --- a/internal/sensors/parser.go +++ b/internal/sensors/parser.go @@ -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 { diff --git a/internal/sensors/parser_test.go b/internal/sensors/parser_test.go index 81adcb0d8..d4ee80d66 100644 --- a/internal/sensors/parser_test.go +++ b/internal/sensors/parser_test.go @@ -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},