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-09-26 22:09:43 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-09-26 22:09:43 +0300
commitabe658215864d1abbbc5f9866e1c7292463e1091 (patch)
treea44c1122e248d0cb6e0f5fdb9fe0d52b28b2107a /src/Duet3Mini
parent207b47f6ac82191ef38888e13ea1533a23b3fda8 (diff)
Added definition of Vref series resistor to hardware definition
Diffstat (limited to 'src/Duet3Mini')
-rw-r--r--src/Duet3Mini/Pins_Duet3Mini.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Duet3Mini/Pins_Duet3Mini.h b/src/Duet3Mini/Pins_Duet3Mini.h
index a2f4153e..5a4bde62 100644
--- a/src/Duet3Mini/Pins_Duet3Mini.h
+++ b/src/Duet3Mini/Pins_Duet3Mini.h
@@ -229,7 +229,7 @@ constexpr Pin VssaSensePin = PortBPin(4);
constexpr Pin VrefSensePin = PortBPin(5);
constexpr float DefaultThermistorSeriesR = 2200.0; // Thermistor series resistor value in ohms
-constexpr float MinVrefLoadR = (DefaultThermistorSeriesR / ARRAY_SIZE(TEMP_SENSE_PINS)) * 4700.0/((DefaultThermistorSeriesR / ARRAY_SIZE(TEMP_SENSE_PINS)) + 4700.0);
+constexpr float MinVrefLoadR = (DefaultThermistorSeriesR / NumThermistorInputs) * 4700.0/((DefaultThermistorSeriesR / NumThermistorInputs) + 4700.0);
// there are 3 temperature sensing channels and a 4K7 load resistor
#if defined(DUET3MINI_V04)
constexpr float VrefSeriesR = 27.0;