Skip to content

Commit 4d321c8

Browse files
committed
Fix compilation if not Davinci board
1 parent a8eb705 commit 4d321c8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/ArduinoDUE/Repetier/Commands.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,13 +2067,19 @@ void Commands::processMCode(GCode *com) {
20672067
//Davinci specific
20682068
case 121: //M121
20692069
Com::printF(PSTR("Sensors: "));
2070+
#if defined(TOP_SENSOR_PIN)
20702071
Com::printF(PSTR("Door "));
20712072
Com::printF(READ(TOP_SENSOR_PIN) ? Com::tHSpace : Com::tLSpace);
2073+
#endif
2074+
#if defined(FIL_SENSOR1_PIN)
20722075
Com::printF(PSTR(" E0 "));
20732076
Com::printF(READ(FIL_SENSOR1_PIN) ? Com::tHSpace : Com::tLSpace);
2077+
#endif
20742078
#if NUM_EXTRUDER == 2
2079+
#if defined(FIL_SENSOR1_PIN)
20752080
Com::printF(PSTR(" E1 "));
20762081
Com::printF(READ(FIL_SENSOR2_PIN) ? Com::tHSpace : Com::tLSpace);
2082+
#endif
20772083
#endif
20782084
Com::println();
20792085
break;

src/ArduinoDUE/Repetier/pins.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,9 @@ STEPPER_CURRENT_CONTROL
13101310
#undef E1_PINS
13111311
#define E1_PINS
13121312
//Davinci Specific, second extruder pins are in sensitive pins
1313+
#undef HEATER_2_PIN
13131314
#define HEATER_2_PIN -1
1315+
#undef TEMP_2_PIN
13141316
#define TEMP_2_PIN -1
13151317
#endif
13161318

0 commit comments

Comments
 (0)