From 0d80c84493bac67830313b8379b402e0330d1ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Fri, 15 Apr 2011 23:52:07 +0000 Subject: [PATCH] Fixed Issue 111. --- Hardware/ATI/ATIGPU.cs | 6 ++++++ Hardware/ATI/ATIGroup.cs | 5 +++-- Properties/AssemblyVersion.cs | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Hardware/ATI/ATIGPU.cs b/Hardware/ATI/ATIGPU.cs index 80e6619..3af14b5 100644 --- a/Hardware/ATI/ATIGPU.cs +++ b/Hardware/ATI/ATIGPU.cs @@ -187,16 +187,22 @@ namespace OpenHardwareMonitor.Hardware.ATI { if (adlp.EngineClock > 0) { coreClock.Value = 0.01f * adlp.EngineClock; ActivateSensor(coreClock); + } else { + coreClock.Value = null; } if (adlp.MemoryClock > 0) { memoryClock.Value = 0.01f * adlp.MemoryClock; ActivateSensor(memoryClock); + } else { + memoryClock.Value = null; } if (adlp.Vddc > 0) { coreVoltage.Value = 0.001f * adlp.Vddc; ActivateSensor(coreVoltage); + } else { + coreVoltage.Value = null; } coreLoad.Value = Math.Min(adlp.ActivityPercent, 100); diff --git a/Hardware/ATI/ATIGroup.cs b/Hardware/ATI/ATIGroup.cs index 2d68b56..831c201 100644 --- a/Hardware/ATI/ATIGroup.cs +++ b/Hardware/ATI/ATIGroup.cs @@ -100,9 +100,10 @@ namespace OpenHardwareMonitor.Hardware.ATI { report.AppendLine(adapterInfo[i].FunctionNumber.ToString( CultureInfo.InvariantCulture)); report.Append("AdapterID: 0x"); - report.AppendLine(adapterID.ToString("X", CultureInfo.InvariantCulture)); + report.AppendLine(adapterID.ToString("X", + CultureInfo.InvariantCulture)); - if (adapterID != 0 && !string.IsNullOrEmpty(adapterInfo[i].UDID) && + if (!string.IsNullOrEmpty(adapterInfo[i].UDID) && (adapterInfo[i].VendorID == ADL.ATI_VENDOR_ID1 || adapterInfo[i].VendorID == ADL.ATI_VENDOR_ID2)) { bool found = false; diff --git a/Properties/AssemblyVersion.cs b/Properties/AssemblyVersion.cs index b95086e..8ca2009 100644 --- a/Properties/AssemblyVersion.cs +++ b/Properties/AssemblyVersion.cs @@ -37,5 +37,5 @@ using System.Reflection; -[assembly: AssemblyVersion("0.2.1.17")] -[assembly: AssemblyInformationalVersion("0.2.1.17 Alpha")] \ No newline at end of file +[assembly: AssemblyVersion("0.2.1.18")] +[assembly: AssemblyInformationalVersion("0.2.1.18 Alpha")] \ No newline at end of file