Skip to content

Commit

Permalink
Fix for running on systems with no voltage monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomyandy committed Nov 13, 2020
1 parent 7ccfaf4 commit 8da8eec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Heating/LocalHeater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,11 @@ void LocalHeater::CalculateModel(HeaterParameters& params) noexcept
lrintf(dLow.GetMean()), lrintf(dLow.GetDeviation()),
(double)heatingRate.GetMean(), (double)heatingRate.GetDeviation(),
(double)coolingRate.GetMean(), (double)coolingRate.GetDeviation(),
#if HAS_VOLTAGE_MONITOR
(double)tuningVoltage.GetMean(), (double)tuningVoltage.GetDeviation(),
#else
(double)0.0, (double)0.0,
#endif
coolingRate.GetNumSamples()
);
}
Expand Down

0 comments on commit 8da8eec

Please sign in to comment.