Skip to content

Commit

Permalink
Update HWInfoRegistry.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rem0o committed Feb 25, 2024
1 parent c166d14 commit 11d267b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HWInfoRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 11d267b

Please sign in to comment.