FullControlXYZ/fullcontrol

fc.transform(steps, 'gcode', gcode_controls) returns None

FrostiFish opened this issue · 1 comments

For example:
gcode = fc.transform(steps, 'gcode', gcode_controls)
print(gcode)

will output:
None

It does however generate a file

Thanks for the bug report!. I believe this issue only happens if the gcode_controls object (i.e. fc.GcodeControls()) has the attribute save_as defined. The code came about this way since it was kinda of seen as an either/or situation... you either get the gcode returned or you get the gcode saved to file. But this isn't really necessary so I've now changed the code to return the gcode string regardless of whether it is saved to file or not. I'll commit shortly.