public void Update() { if (Temperature == null) { return; } ADLTemperature adlt = new ADLTemperature(); for (int i = 0; i < Temperature.Length; ++i) { var res = ADL.ADL_Overdrive5_Temperature_Get(i, 0, ref adlt); if (res == ADL.ADL_OK) { Temperature[i] = 0.001f * adlt.Temperature; } } }