Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-11-12 14:08:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-11-12 14:08:16 +0300
commita87c1479d740c95c298e97a96480def37f115db5 (patch)
tree3aa120b18417b8a76a882eff50a22fd4f2ce32cd /src/Heating
parent33d35875f7db384b38e4f601982e15aea699b9cb (diff)
Replaced call to log by logf
Diffstat (limited to 'src/Heating')
-rw-r--r--src/Heating/Sensors/Thermistor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Heating/Sensors/Thermistor.cpp b/src/Heating/Sensors/Thermistor.cpp
index 25fe0908..0bed3cf3 100644
--- a/src/Heating/Sensors/Thermistor.cpp
+++ b/src/Heating/Sensors/Thermistor.cpp
@@ -313,7 +313,7 @@ void Thermistor::Poll() noexcept
else
{
// Else it's a thermistor
- const float logResistance = log(resistance);
+ const float logResistance = logf(resistance);
const float recipT = shA + shB * logResistance + shC * logResistance * logResistance * logResistance;
const float temp = (recipT > 0.0) ? (1.0/recipT) + ABS_ZERO : BadErrorTemperature;