Skip to content

Commit

Permalink
修正不含温度监控的版本编译不通过的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed May 22, 2021
1 parent 2699531 commit afb3860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TrafficMonitor/TrafficMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,16 +958,20 @@ BOOL CTrafficMonitorApp::InitInstance()

void CTrafficMonitorApp::InitOpenHardwareLibInThread()
{
#ifndef WITHOUT_TEMPERATURE
AfxBeginThread(InitOpenHardwareMonitorLibThreadFunc, NULL);
#endif
}


void CTrafficMonitorApp::UpdateOpenHardwareMonitorEnableState()
{
#ifndef WITHOUT_TEMPERATURE
m_pMonitor->SetCpuEnable(m_general_data.IsHardwareEnable(HI_CPU));
m_pMonitor->SetGpuEnable(m_general_data.IsHardwareEnable(HI_GPU));
m_pMonitor->SetHddEnable(m_general_data.IsHardwareEnable(HI_HDD));
m_pMonitor->SetMainboardEnable(m_general_data.IsHardwareEnable(HI_MBD));
#endif
}

void CTrafficMonitorApp::OnHelp()
Expand Down

0 comments on commit afb3860

Please sign in to comment.