Printrboard G2 support (#13116)

This commit is contained in:
Bob Kuhn
2019-02-26 21:03:13 -06:00
committed by Scott Lahteine
parent 4200f9ed62
commit ddbe4cfa20
12 changed files with 3009 additions and 124 deletions

View File

@ -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
}
/**