GCodeProcessor -> Human readable extrusion roles in gcode

This commit is contained in:
enricoturri1966 2020-07-28 09:48:55 +02:00
parent 14366800e2
commit d9228ee82c
5 changed files with 46 additions and 22 deletions

View file

@ -64,7 +64,7 @@ public:
#endif // ENABLE_GCODE_VIEWER
m_gcode += buf;
#if ENABLE_GCODE_VIEWER
sprintf(buf, ";%s%d\n", GCodeProcessor::Extrusion_Role_Tag.c_str(), erWipeTower);
sprintf(buf, ";%s%s\n", GCodeProcessor::Extrusion_Role_Tag.c_str(), ExtrusionEntity::role_to_string(erWipeTower).c_str());
#else
sprintf(buf, ";%s%d\n", GCodeAnalyzer::Extrusion_Role_Tag.c_str(), erWipeTower);
#endif // ENABLE_GCODE_VIEWER