Fix compilation if not Davinci board
rodzic
a8eb705cab
commit
4d321c8a45
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue