diff --git a/adl.c b/adl.c index cc850ca9..1a80c22c 100644 --- a/adl.c +++ b/adl.c @@ -234,6 +234,9 @@ void init_adl(int nDevs) ga->lpAdapterID = lpAdapterID; ga->DefPerfLev = NULL; + if (ADL_Overdrive5_ThermalDevices_Enum(iAdapterIndex, 0, &ga->lpThermalControllerInfo) != ADL_OK) + applog(LOG_INFO, "Failed to ADL_Overdrive5_ThermalDevices_Enum"); + ga->lpOdParameters.iSize = sizeof(ADLODParameters); if (ADL_Overdrive5_ODParameters_Get(iAdapterIndex, &ga->lpOdParameters) != ADL_OK) applog(LOG_INFO, "Failed to ADL_Overdrive5_ODParameters_Get"); diff --git a/miner.h b/miner.h index f5aa7a2d..78919498 100644 --- a/miner.h +++ b/miner.h @@ -203,6 +203,7 @@ struct gpu_adl { ADLFanSpeedInfo lpFanSpeedInfo; ADLFanSpeedValue lpFanSpeedValue; ADLFanSpeedValue DefFanSpeedValue; + ADLThermalControllerInfo lpThermalControllerInfo; int iEngineClock; int iMemoryClock;