|
@ -84,6 +84,10 @@ |
|
|
#include "../feature/mixing.h" |
|
|
#include "../feature/mixing.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_POWER_CONTROL) |
|
|
|
|
|
#include "../feature/power.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
Planner planner; |
|
|
Planner planner; |
|
|
|
|
|
|
|
|
// public:
|
|
|
// public:
|
|
@ -860,6 +864,11 @@ void Planner::_buffer_steps(const int32_t (&target)[ABCE], float fr_mm_s, const |
|
|
|
|
|
|
|
|
block->active_extruder = extruder; |
|
|
block->active_extruder = extruder; |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_POWER_CONTROL) |
|
|
|
|
|
if (block->steps[X_AXIS] || block->steps[Y_AXIS] || block->steps[Z_AXIS]) |
|
|
|
|
|
powerManager.power_on(); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
//enable active axes
|
|
|
//enable active axes
|
|
|
#if CORE_IS_XY |
|
|
#if CORE_IS_XY |
|
|
if (block->steps[A_AXIS] || block->steps[B_AXIS]) { |
|
|
if (block->steps[A_AXIS] || block->steps[B_AXIS]) { |
|
@ -892,6 +901,10 @@ void Planner::_buffer_steps(const int32_t (&target)[ABCE], float fr_mm_s, const |
|
|
// Enable extruder(s)
|
|
|
// Enable extruder(s)
|
|
|
if (esteps) { |
|
|
if (esteps) { |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_POWER_CONTROL) |
|
|
|
|
|
powerManager.power_on(); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(DISABLE_INACTIVE_EXTRUDER) // Enable only the selected extruder
|
|
|
#if ENABLED(DISABLE_INACTIVE_EXTRUDER) // Enable only the selected extruder
|
|
|
|
|
|
|
|
|
#define DISABLE_IDLE_E(N) if (!g_uc_extruder_last_move[N]) disable_E##N(); |
|
|
#define DISABLE_IDLE_E(N) if (!g_uc_extruder_last_move[N]) disable_E##N(); |
|
|