Skip to content

Commit

Permalink
Fix temperature monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhinham committed Nov 7, 2021
1 parent 7f35660 commit af2bec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mt32pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ void CMT32Pi::MainTask()
Awaken();

#ifdef MONITOR_TEMPERATURE
if (ticks - m_nTempUpdateTime >= MSEC2HZ(5000))
if (nTicks - m_nTempUpdateTime >= MSEC2HZ(5000))
{
m_pLogger->Write(MT32PiName, LogDebug, "Temperature: %dC", CCPUThrottle::Get()->GetTemperature());
m_nTempUpdateTime = ticks;
m_nTempUpdateTime = nTicks;
}
#endif

Expand Down

0 comments on commit af2bec9

Please sign in to comment.