Skip to content

Commit

Permalink
Merge pull request #51 from ouyangyiluo/temperature_unit
Browse files Browse the repository at this point in the history
Compatible with more temperature units text
  • Loading branch information
Rem0o authored Nov 25, 2023
2 parents 1841f64 + 6a21703 commit c166d14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HWInfoRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ private static HwInfoSensorType GetSensorType(RegistryKey key, int index)
switch (unit.ToUpperInvariant())
{
case "°C":
case "":
case "°F": // maybe should not support F since no conversion is available
case "":
return HwInfoSensorType.Temperature;
case "RPM":
return HwInfoSensorType.RPM;
Expand Down

0 comments on commit c166d14

Please sign in to comment.