HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a12c7f0
)
made it so Extruder now resets to 0 given a G92 with no other arguments
author
Logxen
<logxen@hotmail.com>
Tue, 20 Nov 2012 22:12:54 +0000
(14:12 -0800)
committer
Logxen
<logxen@hotmail.com>
Tue, 20 Nov 2012 22:12:54 +0000
(14:12 -0800)
src/modules/tools/extruder/Extruder.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/tools/extruder/Extruder.cpp
b/src/modules/tools/extruder/Extruder.cpp
index
491edcd
..
528d652
100644
(file)
--- a/
src/modules/tools/extruder/Extruder.cpp
+++ b/
src/modules/tools/extruder/Extruder.cpp
@@
-111,6
+111,10
@@
void Extruder::on_gcode_execute(void* argument){
this->current_position = gcode->get_value('E');
this->target_position = this->current_position;
this->current_steps = int(floor(this->steps_per_millimeter * this->current_position));
+ }else if( gcode->get_num_args() == 0){
+ this->current_position = 0.0;
+ this->target_position = this->current_position;
+ this->current_steps = 0;
}
}else{
// Extrusion length from 'G' Gcode