diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-03-07 17:24:52 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-03-07 17:24:52 +0300 |
commit | 966eebf742e670fe10fb0a2b5f2daa305dc4f30e (patch) | |
tree | 0c757791c5d1c9ef30d91f991c1de4c866e0f37e /src/Platform/Platform.cpp | |
parent | 5ce2a43ffdb4e0c4f9e0c8d4b6f1d8b0ffea8f11 (diff) |
Corrections for Mini4 board
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r-- | src/Platform/Platform.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp index 3865d005..b596c1d6 100644 --- a/src/Platform/Platform.cpp +++ b/src/Platform/Platform.cpp @@ -786,12 +786,14 @@ void Platform::Init() noexcept extrusionAncilliaryPwmValue = 0.0; +#if SUPPORT_SPI_SENSORS // Enable pullups on all the SPI CS pins. This is required if we are using more than one device on the SPI bus. // Otherwise, when we try to initialise the first device, the other devices may respond as well because their CS lines are not high. for (Pin p : SpiTempSensorCsPins) { pinMode(p, INPUT_PULLUP); } +#endif // If MISO from a MAX31856 board breaks after initialising the MAX31856 then if MISO floats low and reads as all zeros, this looks like a temperature of 0C and no error. // Enable the pullup resistor, with luck this will make it float high instead. |