removing get_value from laser too
authorArthur Wolf <wolf.arthur@gmail.com>
Thu, 24 Jan 2013 14:04:23 +0000 (15:04 +0100)
committerArthur Wolf <wolf.arthur@gmail.com>
Thu, 24 Jan 2013 14:04:23 +0000 (15:04 +0100)
src/modules/tools/laser/Laser.cpp

index 1522c28..cae9797 100644 (file)
@@ -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->get_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;