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-11-06 22:59:27 +0300
committerFormerLurker <hochgebe@gmail.com>2021-11-06 22:59:27 +0300
commitb57d34b8e69d6d5680ba271d6040734899295d05 (patch)
tree5184a94bd4120ba7683a3abe92f5abe49854a82c /PyArcWelder
parent441742cfd83667fe8e2507a35cc0207687519650 (diff)
Rewrite of ArcStraightener to support multiple firmware types and versions. Convert utilities class to namespace.
Diffstat (limited to 'PyArcWelder')
-rw-r--r--PyArcWelder/py_arc_welder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/PyArcWelder/py_arc_welder.cpp b/PyArcWelder/py_arc_welder.cpp
index 482c09b..fcb4b71 100644
--- a/PyArcWelder/py_arc_welder.cpp
+++ b/PyArcWelder/py_arc_welder.cpp
@@ -241,7 +241,7 @@ bool py_gcode_arc_args::parse_args(PyObject* py_args, py_logger* p_py_logger, py
p_py_logger->log(GCODE_CONVERSION, WARNING, message);
}
else {
- args.default_xyz_precision = gcode_arc_converter::PyFloatOrInt_AsDouble(py_default_xyz_precision);
+ args.default_xyz_precision = (unsigned char)gcode_arc_converter::PyFloatOrInt_AsDouble(py_default_xyz_precision);
if (args.default_xyz_precision < 3)
{
std::string message = "ParseArgs - The default XYZ precision received was less than 3, which could cause problems printing arcs. Setting to 3.";
@@ -265,7 +265,7 @@ bool py_gcode_arc_args::parse_args(PyObject* py_args, py_logger* p_py_logger, py
p_py_logger->log(WARNING, GCODE_CONVERSION, message);
}
else {
- args.default_e_precision = gcode_arc_converter::PyFloatOrInt_AsDouble(py_default_e_precision);
+ args.default_e_precision = (unsigned char)gcode_arc_converter::PyFloatOrInt_AsDouble(py_default_e_precision);
if (args.default_e_precision < 3)
{
std::string message = "ParseArgs - The default E precision received was less than 3, which could cause extrusion problems. Setting to 3.";