diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-10-09 13:20:43 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-10-09 13:20:43 +0300 |
commit | 598833d9508a9bf2c3c0633226bbb1f983871714 (patch) | |
tree | b3b1fdf41fe48a036c6f5da81188dd2263dfd295 /src/DuetM | |
parent | fb36a5792abaa9e613b4f66ec4df4af68b04ac14 (diff) |
Bug fix for thermistor Vref checking
Diffstat (limited to 'src/DuetM')
-rw-r--r-- | src/DuetM/Pins_DuetM.h | 6 |
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); |