Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2021-07-17 18:13:08 +0300
committerFormerLurker <hochgebe@gmail.com>2021-07-17 18:13:08 +0300
commit4b2a112c139ce7f9909ba95f27cada3ecea2405b (patch)
treebfb1e2d132ec8b65dcfc09a1692baa5fe1847e70 /ArcWelder
parent56ea16df55e0e37581688effac94e78ffc10f941 (diff)
Fix travel statistics print in console app. Remove gcode length calculation check for non-debug builds.
Diffstat (limited to 'ArcWelder')
-rw-r--r--ArcWelder/segmented_arc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ArcWelder/segmented_arc.cpp b/ArcWelder/segmented_arc.cpp
index 568d964..60d50cd 100644
--- a/ArcWelder/segmented_arc.cpp
+++ b/ArcWelder/segmented_arc.cpp
@@ -394,11 +394,15 @@ int segmented_arc::get_shape_gcode_length()
int num_parameters = 4 + (has_e ? 1 : 0) + (has_z ? 1: 0) + (has_f ? 1: 0);
// Return the length of the gcode.
int gcode_length = 2 + num_spaces + num_decimal_points + num_digits + num_minus_signs + num_decimals + num_parameters;
+
+ // Keep this around in case we have any future issues with the gcode length calculation
+ #ifdef Debug
std::string gcode = get_shape_gcode();
if (gcode.length() != gcode_length)
{
- return 10000;
+ return 9999999;
}
+ #endif
return gcode_length;