add slow_down_layers

This commit is contained in:
Wang YB
2024-04-18 10:11:17 +08:00
parent 6e4ada127d
commit 68553eba55
7 changed files with 39 additions and 1 deletions

View File

@@ -465,6 +465,13 @@ private:
// On the first printing layer. This flag triggers first layer speeds.
bool on_first_layer() const { return m_layer != nullptr && m_layer->id() == 0; }
//w25
int layer_id() const
{
if (m_layer == nullptr)
return -1;
return m_layer->id();
}
// To control print speed of 1st object layer over raft interface.
bool object_layer_over_raft() const { return m_object_layer_over_raft; }