Update MarlinCore.cpp
This commit is contained in:
parent
b3a2b1a6b9
commit
2ec5ffc582
1 changed files with 7 additions and 10 deletions
|
|
@ -993,16 +993,13 @@ void setup() {
|
||||||
|
|
||||||
// Early-disable MAX6675, as it can flood on SPI bus and prevent TMC and others to init correctly
|
// Early-disable MAX6675, as it can flood on SPI bus and prevent TMC and others to init correctly
|
||||||
// thermalManager.init() called too late to do this
|
// thermalManager.init() called too late to do this
|
||||||
#if HAS_MAX6675
|
#if HEATER_0_USES_MAX6675
|
||||||
#if ENABLED(HEATER_0_USES_MAX6675)
|
SET_OUTPUT(MAX6675_SS_PIN); // Setup CS pin
|
||||||
SET_OUTPUT(MAX6675_SS_PIN); // Setup CS pin
|
WRITE(MAX6675_SS_PIN, HIGH); // Disable TT_MAX6675
|
||||||
WRITE(MAX6675_SS_PIN, HIGH); // Disable TT_MAX6675
|
#endif
|
||||||
#endif
|
#if HEATER_1_USES_MAX6675
|
||||||
#if ENABLED(HEATER_1_USES_MAX6675)
|
SET_OUTPUT(MAX6675_SS2_PIN); // Setup CS pin
|
||||||
SET_OUTPUT(MAX6675_SS2_PIN); // Setup CS pin
|
WRITE(MAX6675_SS2_PIN, HIGH); // Disable TT_MAX6675
|
||||||
WRITE(MAX6675_SS2_PIN, HIGH); // Disable TT_MAX6675
|
|
||||||
#endif
|
|
||||||
DELAY_NS(100); // Ensure 100ns delay
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_L64XX
|
#if HAS_L64XX
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue