Skip to content

Commit

Permalink
avoid compilation error for STM32
Browse files Browse the repository at this point in the history
  • Loading branch information
elral committed Oct 21, 2021
1 parent 3e1c593 commit d9cf69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/HeaterSim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void HeaterSim::CalcTemperature()
{
float rate = LN2/_halfTimeCooling;
unsigned long currentTime = millis();
if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1UL);
_deltaTime = _deltams/ 1000.0f;
float deltaTemp = _boilerTemp - _ambientTemp;
float deltaTempAfterCooling = deltaTemp*exp(-rate*_deltaTime);
Expand Down

0 comments on commit d9cf69b

Please sign in to comment.