Follow-up of 44c3493f7d
-> error message logged only for multi-extruder printers
This commit is contained in:
parent
7e5043961a
commit
af77eca9df
1 changed files with 4 additions and 1 deletions
|
@ -529,7 +529,10 @@ void GCodeAnalyzer::_processT(const std::string& cmd)
|
||||||
if (_get_extruder_id() != id)
|
if (_get_extruder_id() != id)
|
||||||
{
|
{
|
||||||
if (id >= m_extruders_count)
|
if (id >= m_extruders_count)
|
||||||
BOOST_LOG_TRIVIAL(error) << "GCodeAnalyzer encountered an invalid toolchange, maybe from a custom gcode.";
|
{
|
||||||
|
if (m_extruders_count > 1)
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "GCodeAnalyzer encountered an invalid toolchange, maybe from a custom gcode.";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_set_extruder_id(id);
|
_set_extruder_id(id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue