Update TemperatureControl.cpp
authorJim Morris <morris@wolfman.com>
Tue, 25 Jun 2013 22:51:14 +0000 (16:51 -0600)
committerJim Morris <morris@wolfman.com>
Tue, 25 Jun 2013 22:51:14 +0000 (16:51 -0600)
Add mark as taken for M105

src/modules/tools/temperaturecontrol/TemperatureControl.cpp

index 1df088b..619b37b 100644 (file)
@@ -129,6 +129,7 @@ void TemperatureControl::on_gcode_received(void* argument){
             char buf[32]; // should be big enough for any status
             int n= snprintf(buf, sizeof(buf), "%s:%3.1f /%3.1f @%d ", this->designator.c_str(), this->get_temperature(), ((target_temperature == UNDEFINED)?0.0:target_temperature), this->o);
             gcode->txt_after_ok.append(buf, n);
+            gcode->mark_as_taken();
         }
         if (gcode->m == 301)
         {