Fix compilation if not Davinci board

pull/322/head
luc lebosse 2017-08-06 19:30:21 +02:00
rodzic a8eb705cab
commit 4d321c8a45
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -2067,13 +2067,19 @@ void Commands::processMCode(GCode *com) {
//Davinci specific
case 121: //M121
Com::printF(PSTR("Sensors: "));
#if defined(TOP_SENSOR_PIN)
Com::printF(PSTR("Door "));
Com::printF(READ(TOP_SENSOR_PIN) ? Com::tHSpace : Com::tLSpace);
#endif
#if defined(FIL_SENSOR1_PIN)
Com::printF(PSTR(" E0 "));
Com::printF(READ(FIL_SENSOR1_PIN) ? Com::tHSpace : Com::tLSpace);
#endif
#if NUM_EXTRUDER == 2
#if defined(FIL_SENSOR1_PIN)
Com::printF(PSTR(" E1 "));
Com::printF(READ(FIL_SENSOR2_PIN) ? Com::tHSpace : Com::tLSpace);
#endif
#endif
Com::println();
break;

Wyświetl plik

@ -1310,7 +1310,9 @@ STEPPER_CURRENT_CONTROL
#undef E1_PINS
#define E1_PINS
//Davinci Specific, second extruder pins are in sensitive pins
#undef HEATER_2_PIN
#define HEATER_2_PIN -1
#undef TEMP_2_PIN
#define TEMP_2_PIN -1
#endif