From 11d267b237a82edb752e604a9d83df2c5f468de6 Mon Sep 17 00:00:00 2001 From: Rem0o Date: Sat, 24 Feb 2024 21:50:15 -0500 Subject: [PATCH] Update HWInfoRegistry.cs --- HWInfoRegistry.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HWInfoRegistry.cs b/HWInfoRegistry.cs index 7213be0..fe2cfea 100644 --- a/HWInfoRegistry.cs +++ b/HWInfoRegistry.cs @@ -60,6 +60,12 @@ public HWInfoPluginSensor[] GetSensors() var hwInfoSensor = new HWInfoPluginSensor(index, type, id, name); + if (list.Any(x => x.Id == id)) + { + // duplicate + continue; + } + list.Add(hwInfoSensor); } }