mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
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:
@@ -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 {
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user