Fix bug in Line number handling
[clinton/Smoothieware.git] / src / modules / communication / utils / Gcode.h
index 435404b..029c964 100644 (file)
@@ -16,7 +16,7 @@ class StreamOutput;
 // Object to represent a Gcode command
 class Gcode {
     public:
-        Gcode(const string&, StreamOutput*);
+        Gcode(const string&, StreamOutput*, bool strip=true);
         Gcode(const Gcode& to_copy);
         Gcode& operator= (const Gcode& to_copy);
         ~Gcode();
@@ -45,7 +45,7 @@ class Gcode {
         string txt_after_ok;
 
     private:
-        void prepare_cached_values();
+        void prepare_cached_values(bool strip=true);
         char *command;
 };
 #endif