Split the GCodePreviewData from the GCodeAnalyzer,

as in the next step the GCodePreviewData will be exported to Perl.
This commit is contained in:
bubnikv 2018-02-14 18:42:09 +01:00
parent f38e0f2b4f
commit 3a6436f6f0
7 changed files with 76 additions and 632 deletions

View file

@ -73,8 +73,8 @@ void Print::clear_gcode_preview_data()
void Print::set_gcode_preview_type(unsigned char type)
{
if ((0 <= type) && (type < GCodeAnalyzer::PreviewData::Extrusion::Num_View_Types))
gcode_preview.extrusion.view_type = (GCodeAnalyzer::PreviewData::Extrusion::EViewType)type;
if ((0 <= type) && (type < GCodePreviewData::Extrusion::Num_View_Types))
gcode_preview.extrusion.view_type = (GCodePreviewData::Extrusion::EViewType)type;
}
void Print::set_gcode_preview_extrusion_flags(unsigned int flags)