ArcWelderLib icon indicating copy to clipboard operation
ArcWelderLib copied to clipboard

`default_xyz_precision` and `default_e_precision` set to 6 if specified

Open fieldOfView opened this issue 4 years ago • 3 comments

Specifying the --default_xyz_precision or --default_e_precision options always results in a value of 6 being used.

In https://github.com/FormerLurker/ArcWelderLib/blob/master/ArcWelderConsole/ArcWelderConsole.cpp#L135 and https://github.com/FormerLurker/ArcWelderLib/blob/master/ArcWelderConsole/ArcWelderConsole.cpp#L141, the --default_xyz_precision or --default_e_precision options are defined as unsigned char, so they are parsed as (ascii) characters instead of ints. In my understanding this means that specifying a 0 will result in a value of 48 being parsed.

fieldOfView avatar Jul 16 '21 12:07 fieldOfView

Will check this out today, thanks for reporting!

FormerLurker avatar Jul 16 '21 13:07 FormerLurker

You are 100% correct. And there were more issues hiding in there. I just made a ton of changes, and have been testing almost exclusively via the OctoPrint app. I'm working on some of the other stuff now, and will post back once this is resolved.

FormerLurker avatar Jul 16 '21 17:07 FormerLurker

Ok, I just pushed a fix to devel. I've got more testing to do, but I think this issue is solved.

FormerLurker avatar Jul 16 '21 21:07 FormerLurker