Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@
#define TEMP_SENSOR_AD8495_OFFSET 0.0
#define TEMP_SENSOR_AD8495_GAIN 1.0

/**
*
* Limit check_axes_activity frequency to 10Hz
* Affects M106
* Undefine this if laser engraving with M106 produces blurry results
*/
// #define LIMIT_FREQUENCY

/**
* Controller Fan
* To cool down the stepper drivers and MOSFETs.
Expand Down
14 changes: 9 additions & 5 deletions Marlin/src/Marlin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,12 +608,16 @@ void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
L6470.monitor_driver();
#endif

// Limit check_axes_activity frequency to 10Hz
static millis_t next_check_axes_ms = 0;
if (ELAPSED(ms, next_check_axes_ms)) {
// Limit check_axes_activity frequency to 10Hz
#if ENABLED(LIMIT_FREQUENCY)
static millis_t next_check_axes_ms = 0;
if (ELAPSED(ms, next_check_axes_ms)) {
planner.check_axes_activity();
next_check_axes_ms = ms + 100UL;
}
#else
planner.check_axes_activity();
next_check_axes_ms = ms + 100UL;
}
#endif

#if PIN_EXISTS(FET_SAFETY)
static millis_t FET_next;
Expand Down