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
path: root/src/DuetM
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2019-10-09 13:20:43 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-10-09 13:20:43 +0300
commit598833d9508a9bf2c3c0633226bbb1f983871714 (patch)
treeb3b1fdf41fe48a036c6f5da81188dd2263dfd295 /src/DuetM
parentfb36a5792abaa9e613b4f66ec4df4af68b04ac14 (diff)
Bug fix for thermistor Vref checking
Diffstat (limited to 'src/DuetM')
-rw-r--r--src/DuetM/Pins_DuetM.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DuetM/Pins_DuetM.h b/src/DuetM/Pins_DuetM.h
index c3cd3b6f..ad0e58bc 100644
--- a/src/DuetM/Pins_DuetM.h
+++ b/src/DuetM/Pins_DuetM.h
@@ -121,13 +121,13 @@ constexpr float EXT_SHC = 0.0;
// Thermistor series resistor value in Ohms
constexpr float DefaultThermistorSeriesR = 2200.0;
-constexpr float MinVrefLoadR = DefaultThermistorSeriesR / 4; // there are 4 temperature sensing channels
-
+constexpr float MinVrefLoadR = (DefaultThermistorSeriesR / 4) * 4700.0/((DefaultThermistorSeriesR / 4) + 4700.0);
+ // there are 4 temperature sensing channels and a 4K7 load resistor
// Number of SPI temperature sensors to support
constexpr size_t MaxSpiTempSensors = 2;
// Digital pins the 31855s have their select lines tied to
-constexpr Pin SpiTempSensorCsPins[MaxSpiTempSensors] = { PortBPin(14), PortCPin(19) }; // SPI0_CS1, SPI0_CS2
+constexpr Pin SpiTempSensorCsPins[MaxSpiTempSensors] = { PortBPin(14), PortCPin(19) }; // SPI0_CS1, SPI0_CS2
// Pin that controls the ATX power on/off
constexpr Pin ATX_POWER_PIN = PortAPin(0);