another small fix
This commit is contained in:
@ -32,7 +32,7 @@ void Thermometer::exec(float r) {
|
||||
if (m_lastSmoothedTemperature == INVALID_TEMPERATURE) {
|
||||
temperature = temperatureRaw;
|
||||
} else {
|
||||
temperature = alpha * temperatureRaw + (1 - alpha) * m_lastSmoothedTemperature;
|
||||
temperature = alpha * temperatureRaw + (1.0 - alpha) * m_lastSmoothedTemperature;
|
||||
}
|
||||
m_lastSmoothedTemperature = temperature;
|
||||
}
|
||||
|
Reference in New Issue
Block a user