Fix freezing and MINTEMP Error with MAX31855 thermocouple

This commit is contained in:
esenapaj 2016-10-13 16:03:20 +09:00
parent ca7275a67a
commit 385bd8a4a3
2 changed files with 8 additions and 9 deletions

View file

@ -9737,7 +9737,9 @@ void setup() {
safe_delay(BOOTSCREEN_TIMEOUT);
#elif ENABLED(ULTRA_LCD)
bootscreen();
lcd_init();
#if DISABLED(SDSUPPORT)
lcd_init();
#endif
#endif
#endif

View file

@ -1001,14 +1001,11 @@ void Temperature::init() {
#if ENABLED(HEATER_0_USES_MAX6675)
#if DISABLED(SDSUPPORT)
OUT_WRITE(SCK_PIN, LOW);
OUT_WRITE(MOSI_PIN, HIGH);
SET_INPUT(MISO_PIN);
WRITE(MISO_PIN,1);
#else
OUT_WRITE(SS_PIN, HIGH);
#endif
OUT_WRITE(SCK_PIN, LOW);
OUT_WRITE(MOSI_PIN, HIGH);
SET_INPUT(MISO_PIN);
WRITE(MISO_PIN, HIGH);
OUT_WRITE(SS_PIN, HIGH);
OUT_WRITE(MAX6675_SS, HIGH);