Don't disable extruder on on_halt if old style config
authorJim Morris <morris@wolfman.com>
Wed, 5 Nov 2014 07:21:19 +0000 (23:21 -0800)
committerJim Morris <morris@wolfman.com>
Wed, 5 Nov 2014 07:21:19 +0000 (23:21 -0800)
src/modules/tools/extruder/Extruder.cpp
src/modules/tools/extruder/Extruder.h

index 6179575..3a8fa8e 100644 (file)
@@ -94,8 +94,10 @@ void Extruder::on_halt(void *arg)
 {
     if(arg == nullptr) {
         // turn off motor
-        this->enabled= false;
         this->en_pin.set(1);
+        // disable if multi extruder
+        if(!this->single_config)
+            this->enabled= false;
     }
 }
 
index ae46672..e345236 100644 (file)
@@ -72,8 +72,8 @@ class Extruder : public Tool {
         float          retract_zlift_length;
         float          retract_zlift_feedrate;
 
-        char mode;        // extruder motion mode,  OFF, SOLO, or FOLLOW
         struct {
+            char mode:3;        // extruder motion mode,  OFF, SOLO, or FOLLOW
             bool absolute_mode:1; // absolute/relative coordinate mode switch
             bool paused:1;
             bool single_config:1;