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>2021-12-21 14:15:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-12-21 14:15:35 +0300
commit13f51fcd3b22ef9dc4798607d8b27f185d7358b5 (patch)
tree41829410b5ed13317bb3832541576b291e1c0242 /src/Heating
parent048200063a1a3e576717311380a6b9eef314c0cd (diff)
Recognise DueX v0.11 boards and adjust default thermistor series R
Diffstat (limited to 'src/Heating')
-rw-r--r--src/Heating/Sensors/Thermistor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Heating/Sensors/Thermistor.cpp b/src/Heating/Sensors/Thermistor.cpp
index a99e0533..caa0abd2 100644
--- a/src/Heating/Sensors/Thermistor.cpp
+++ b/src/Heating/Sensors/Thermistor.cpp
@@ -182,10 +182,14 @@ bool Thermistor::ConfigureLParam(int lVal, const StringRef& reply) noexcept
void Thermistor::InitPort() noexcept
{
adcLowOffset = adcHighOffset = 0;
- adcFilterChannel = reprap.GetPlatform().GetAveragingFilterIndex(port);
+ Platform& p = reprap.GetPlatform();
+ adcFilterChannel = p.GetAveragingFilterIndex(port);
if (adcFilterChannel >= 0)
{
- reprap.GetPlatform().GetAdcFilter(adcFilterChannel).Init((1u << AdcBits) - 1);
+ p.GetAdcFilter(adcFilterChannel).Init((1u << AdcBits) - 1);
+#ifdef DUET_NG
+ seriesR = p.GetDefaultThermistorSeriesR(adcFilterChannel);
+#endif
#if HAS_VREF_MONITOR
// Default the H and L parameters to the values from nonvolatile memory
NonVolatileMemory mem;