Fixed 5th fan channel for IT87 chips. Added ADL status code to report.
1.1 --- a/Hardware/ATI/ADL.cs Wed Jan 27 23:10:38 2010 +0000
1.2 +++ b/Hardware/ATI/ADL.cs Thu Jan 28 19:31:10 2010 +0000
1.3 @@ -109,7 +109,7 @@
1.4 public const int ADL_MAX_ADAPTERS = 40;
1.5 public const int ADL_MAX_DISPLAYS = 40;
1.6 public const int ADL_MAX_DEVICENAME = 32;
1.7 - public const int ADL_SUCCESS = 0;
1.8 + public const int ADL_OK = 0;
1.9 public const int ADL_FAIL = -1;
1.10 public const int ADL_DRIVER_OK = 0;
1.11 public const int ADL_MAX_GLSYNC_PORTS = 8;
2.1 --- a/Hardware/ATI/ATIGroup.cs Wed Jan 27 23:10:38 2010 +0000
2.2 +++ b/Hardware/ATI/ATIGroup.cs Thu Jan 28 19:31:10 2010 +0000
2.3 @@ -47,19 +47,28 @@
2.4
2.5 public ATIGroup() {
2.6 try {
2.7 - if (ADL.ADL_Main_Control_Create(1) == ADL.ADL_SUCCESS) {
2.8 + int status = ADL.ADL_Main_Control_Create(1);
2.9 +
2.10 + report.AppendLine("AMD Display Library");
2.11 + report.AppendLine();
2.12 + report.Append("Status: ");
2.13 + if (status == ADL.ADL_OK)
2.14 + report.AppendLine("OK");
2.15 + else
2.16 + report.AppendLine(status.ToString());
2.17 + report.AppendLine();
2.18 +
2.19 + if (status == ADL.ADL_OK) {
2.20 int numberOfAdapters = 0;
2.21 ADL.ADL_Adapter_NumberOfAdapters_Get(ref numberOfAdapters);
2.22 -
2.23 - report.AppendLine("AMD Display Library");
2.24 - report.AppendLine();
2.25 +
2.26 report.Append("Numer of adapters: ");
2.27 report.AppendLine(numberOfAdapters.ToString());
2.28 report.AppendLine();
2.29
2.30 if (numberOfAdapters > 0) {
2.31 ADLAdapterInfo[] adapterInfo = new ADLAdapterInfo[numberOfAdapters];
2.32 - if (ADL.ADL_Adapter_AdapterInfo_Get(adapterInfo) == ADL.ADL_SUCCESS)
2.33 + if (ADL.ADL_Adapter_AdapterInfo_Get(adapterInfo) == ADL.ADL_OK)
2.34 for (int i = 0; i < numberOfAdapters; i++) {
2.35 int isActive;
2.36 ADL.ADL_Adapter_Active_Get(adapterInfo[i].AdapterIndex,
3.1 --- a/Hardware/LPC/IT87.cs Wed Jan 27 23:10:38 2010 +0000
3.2 +++ b/Hardware/LPC/IT87.cs Thu Jan 28 19:31:10 2010 +0000
3.3 @@ -109,7 +109,7 @@
3.4 temperatures[i] = new Sensor("Temperature #" + (i + 1), i,
3.5 SensorType.Temperature, this);
3.6
3.7 - fans = new Sensor[4];
3.8 + fans = new Sensor[5];
3.9 for (int i = 0; i < fans.Length; i++)
3.10 fans[i] = new Sensor("Fan #" + (i + 1), i, SensorType.Fan, this);
3.11
4.1 --- a/Properties/AssemblyInfo.cs Wed Jan 27 23:10:38 2010 +0000
4.2 +++ b/Properties/AssemblyInfo.cs Thu Jan 28 19:31:10 2010 +0000
4.3 @@ -33,4 +33,4 @@
4.4 // by using the '*' as shown below:
4.5 // [assembly: AssemblyVersion("1.0.*")]
4.6 [assembly: AssemblyVersion("0.1.1.0")]
4.7 -[assembly: AssemblyFileVersion("0.1.0.0")]
4.8 +[assembly: AssemblyFileVersion("0.1.1.0")]