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:
c68c2e8
)
removing get_value from laser too
author
Arthur Wolf
<wolf.arthur@gmail.com>
Thu, 24 Jan 2013 14:04:23 +0000
(15:04 +0100)
committer
Arthur Wolf
<wolf.arthur@gmail.com>
Thu, 24 Jan 2013 14:04:23 +0000
(15:04 +0100)
src/modules/tools/laser/Laser.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/tools/laser/Laser.cpp
b/src/modules/tools/laser/Laser.cpp
index
1522c28
..
cae9797
100644
(file)
--- a/
src/modules/tools/laser/Laser.cpp
+++ b/
src/modules/tools/laser/Laser.cpp
@@
-53,8
+53,8
@@
void Laser::on_play(void* argument){
void Laser::on_gcode_execute(void* argument){
Gcode* gcode = static_cast<Gcode*>(argument);
this->laser_on = false;
- if( gcode->has_
letter('G' )
){
- int code = gcode->g
et_value('G')
;
+ if( gcode->has_
g
){
+ int code = gcode->g;
if( code == 0 ){ // G0
this->laser_pin = this->laser_tickle_power;
this->laser_on = false;