Synchronize retractions

This commit is contained in:
Thomas Moore
2017-09-29 08:03:28 -05:00
committed by Scott Lahteine
parent f0d34ca4f5
commit ae2173cd52
6 changed files with 45 additions and 20 deletions

View File

@ -34,7 +34,6 @@
void GcodeSuite::G10() {
#if EXTRUDERS > 1
const bool rs = parser.boolval('S');
fwretract.retracted_swap[active_extruder] = rs; // Use 'S' for swap, default to false
#endif
fwretract.retract(true
#if EXTRUDERS > 1

View File

@ -65,8 +65,7 @@ void GcodeSuite::M208() {
void GcodeSuite::M209() {
if (MIN_AUTORETRACT <= MAX_AUTORETRACT) {
if (parser.seen('S')) {
fwretract.autoretract_enabled = parser.value_bool();
for (uint8_t i = 0; i < EXTRUDERS; i++) fwretract.retracted[i] = false;
fwretract.enable_autoretract(parser.value_bool());
}
}
}