Disable is now multi extruder compatible. M84 got a T option.

This commit is contained in:
Erik vd Zalm
2013-01-06 13:37:01 +01:00
parent 3a1cd30ce1
commit 0ac452e252
4 changed files with 35 additions and 16 deletions

View File

@@ -1181,10 +1181,24 @@ void process_commands()
if(code_seen('Z')) disable_z();
#if ((E0_ENABLE_PIN != X_ENABLE_PIN) && (E1_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
if(code_seen('E')) {
disable_e0();
disable_e1();
disable_e2();
}
if(code_seen('T')) {
tmp_extruder = code_value();
if(tmp_extruder >= EXTRUDERS) {
SERIAL_ECHO_START;
SERIAL_ECHOLN(MSG_INVALID_EXTRUDER);
}
else {
if(tmp_extruder == 0) disable_e0();
else if(tmp_extruder == 1) disable_e1();
else if(tmp_extruder == 2) disable_e2();
}
}
else {
disable_e0();
disable_e1();
disable_e2();
}
}
#endif
}
}