# HG changeset patch
# User moel.mich
# Date 1264707070 0
# Node ID 56c9d6c8c08baf17c217166878f1efa685a9b267
# Parent  a5ecd988d38f845fc4af0c97eab52b0e49d9fecb
Fixed 5th fan channel for IT87 chips. Added ADL status code to report.

diff -r a5ecd988d38f -r 56c9d6c8c08b Hardware/ATI/ADL.cs
--- a/Hardware/ATI/ADL.cs	Wed Jan 27 23:10:38 2010 +0000
+++ b/Hardware/ATI/ADL.cs	Thu Jan 28 19:31:10 2010 +0000
@@ -109,7 +109,7 @@
     public const int ADL_MAX_ADAPTERS = 40;
     public const int ADL_MAX_DISPLAYS = 40;
     public const int ADL_MAX_DEVICENAME = 32;
-    public const int ADL_SUCCESS = 0;
+    public const int ADL_OK = 0;
     public const int ADL_FAIL = -1;
     public const int ADL_DRIVER_OK = 0;
     public const int ADL_MAX_GLSYNC_PORTS = 8;
diff -r a5ecd988d38f -r 56c9d6c8c08b Hardware/ATI/ATIGroup.cs
--- a/Hardware/ATI/ATIGroup.cs	Wed Jan 27 23:10:38 2010 +0000
+++ b/Hardware/ATI/ATIGroup.cs	Thu Jan 28 19:31:10 2010 +0000
@@ -47,19 +47,28 @@
 
     public ATIGroup() {
       try {
-        if (ADL.ADL_Main_Control_Create(1) == ADL.ADL_SUCCESS) {
+        int status = ADL.ADL_Main_Control_Create(1);
+
+        report.AppendLine("AMD Display Library");
+        report.AppendLine();
+        report.Append("Status: ");
+        if (status == ADL.ADL_OK)
+          report.AppendLine("OK");
+        else
+          report.AppendLine(status.ToString());
+        report.AppendLine();
+
+        if (status == ADL.ADL_OK) {
           int numberOfAdapters = 0;
           ADL.ADL_Adapter_NumberOfAdapters_Get(ref numberOfAdapters);
-
-          report.AppendLine("AMD Display Library");
-          report.AppendLine();
+          
           report.Append("Numer of adapters: "); 
           report.AppendLine(numberOfAdapters.ToString());
           report.AppendLine();
 
           if (numberOfAdapters > 0) {
             ADLAdapterInfo[] adapterInfo = new ADLAdapterInfo[numberOfAdapters];
-            if (ADL.ADL_Adapter_AdapterInfo_Get(adapterInfo) == ADL.ADL_SUCCESS)
+            if (ADL.ADL_Adapter_AdapterInfo_Get(adapterInfo) == ADL.ADL_OK)
               for (int i = 0; i < numberOfAdapters; i++) {
                 int isActive;
                 ADL.ADL_Adapter_Active_Get(adapterInfo[i].AdapterIndex,
diff -r a5ecd988d38f -r 56c9d6c8c08b Hardware/LPC/IT87.cs
--- a/Hardware/LPC/IT87.cs	Wed Jan 27 23:10:38 2010 +0000
+++ b/Hardware/LPC/IT87.cs	Thu Jan 28 19:31:10 2010 +0000
@@ -109,7 +109,7 @@
         temperatures[i] = new Sensor("Temperature #" + (i + 1), i,
           SensorType.Temperature, this);
 
-      fans = new Sensor[4];
+      fans = new Sensor[5];
       for (int i = 0; i < fans.Length; i++)
         fans[i] = new Sensor("Fan #" + (i + 1), i, SensorType.Fan, this);
 
diff -r a5ecd988d38f -r 56c9d6c8c08b Properties/AssemblyInfo.cs
--- a/Properties/AssemblyInfo.cs	Wed Jan 27 23:10:38 2010 +0000
+++ b/Properties/AssemblyInfo.cs	Thu Jan 28 19:31:10 2010 +0000
@@ -33,4 +33,4 @@
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
 [assembly: AssemblyVersion("0.1.1.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
+[assembly: AssemblyFileVersion("0.1.1.0")]