Printrboard G2 support (#13116)
This commit is contained in:
@ -423,7 +423,9 @@ void disable_all_steppers() {
|
||||
* - Check for HOME button held down
|
||||
* - Check if cooling fan needs to be switched on
|
||||
* - Check if an idle but hot extruder needs filament extruded (EXTRUDER_RUNOUT_PREVENT)
|
||||
* - Pulse FET_SAFETY_PIN if it exists
|
||||
*/
|
||||
|
||||
void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
|
||||
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
@ -639,6 +641,16 @@ void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
|
||||
planner.check_axes_activity();
|
||||
next_check_axes_ms = ms + 100UL;
|
||||
}
|
||||
|
||||
#if PIN_EXISTS(FET_SAFETY)
|
||||
static millis_t FET_next;
|
||||
if (ELAPSED(ms, FET_next)) {
|
||||
FET_next = ms + FET_SAFETY_DELAY; // 2uS pulse every FET_SAFETY_DELAY mS
|
||||
OUT_WRITE(FET_SAFETY_PIN, !FET_SAFETY_INVERTED);
|
||||
DELAY_US(2);
|
||||
WRITE(FET_SAFETY_PIN, FET_SAFETY_INVERTED);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user