|
@@ -84,6 +84,10 @@
|
84
|
84
|
#include "../feature/mixing.h"
|
85
|
85
|
#endif
|
86
|
86
|
|
|
87
|
+#if ENABLED(AUTO_POWER_CONTROL)
|
|
88
|
+ #include "../feature/power.h"
|
|
89
|
+#endif
|
|
90
|
+
|
87
|
91
|
Planner planner;
|
88
|
92
|
|
89
|
93
|
// public:
|
|
@@ -860,6 +864,11 @@ void Planner::_buffer_steps(const int32_t (&target)[ABCE], float fr_mm_s, const
|
860
|
864
|
|
861
|
865
|
block->active_extruder = extruder;
|
862
|
866
|
|
|
867
|
+ #if ENABLED(AUTO_POWER_CONTROL)
|
|
868
|
+ if (block->steps[X_AXIS] || block->steps[Y_AXIS] || block->steps[Z_AXIS])
|
|
869
|
+ powerManager.power_on();
|
|
870
|
+ #endif
|
|
871
|
+
|
863
|
872
|
//enable active axes
|
864
|
873
|
#if CORE_IS_XY
|
865
|
874
|
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
|
892
|
901
|
// Enable extruder(s)
|
893
|
902
|
if (esteps) {
|
894
|
903
|
|
|
904
|
+ #if ENABLED(AUTO_POWER_CONTROL)
|
|
905
|
+ powerManager.power_on();
|
|
906
|
+ #endif
|
|
907
|
+
|
895
|
908
|
#if ENABLED(DISABLE_INACTIVE_EXTRUDER) // Enable only the selected extruder
|
896
|
909
|
|
897
|
910
|
#define DISABLE_IDLE_E(N) if (!g_uc_extruder_last_move[N]) disable_E##N();
|