diff options
author | FormerLurker <hochgebe@gmail.com> | 2021-02-04 22:39:36 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2021-02-04 22:39:36 +0300 |
commit | 5e7920dea901011a9144d0cd3fbd7b78624b7d81 (patch) | |
tree | 8e120b9e7e8038785a9b28f125e2a92837bce4a3 /ArcWelder/unwritten_command.h | |
parent | 11d11e4b7cc1eb28bf62ca9732b98521a80b05cc (diff) |
Fix for issue #34.1.1.1
Diffstat (limited to 'ArcWelder/unwritten_command.h')
-rw-r--r-- | ArcWelder/unwritten_command.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ArcWelder/unwritten_command.h b/ArcWelder/unwritten_command.h index 0bfea2d..8f85a50 100644 --- a/ArcWelder/unwritten_command.h +++ b/ArcWelder/unwritten_command.h @@ -32,22 +32,27 @@ struct unwritten_command e_relative = 0; offset_e = 0; extrusion_length = 0; + is_g1_g2 = false; } unwritten_command(parsed_command &cmd, bool is_relative, double command_length) { is_extruder_relative = is_relative; + is_g1_g2 = cmd.command == "G0" || cmd.command == "G1"; gcode = cmd.gcode; comment = cmd.comment; extrusion_length = command_length; } + /* unwritten_command(position* p, double command_length) { e_relative = p->get_current_extruder().e_relative; offset_e = p->get_current_extruder().get_offset_e(); is_extruder_relative = p->is_extruder_relative; + is_g1_g2 = p->command.command == "G0" || p->command.command == "G1"; gcode = p->command.gcode; comment = p->command.comment; extrusion_length = command_length; - } + } */ + bool is_g1_g2; bool is_extruder_relative; double e_relative; double offset_e; |