|
|
@ -39,12 +39,12 @@
|
|
|
|
#include "module/temperature.h"
|
|
|
|
#include "module/temperature.h"
|
|
|
|
#include "sd/cardreader.h"
|
|
|
|
#include "sd/cardreader.h"
|
|
|
|
#include "module/configuration_store.h"
|
|
|
|
#include "module/configuration_store.h"
|
|
|
|
|
|
|
|
#include "module/printcounter.h" // PrintCounter or Stopwatch
|
|
|
|
#ifdef ARDUINO
|
|
|
|
#ifdef ARDUINO
|
|
|
|
#include <pins_arduino.h>
|
|
|
|
#include <pins_arduino.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#include <math.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include "libs/nozzle.h"
|
|
|
|
#include "libs/nozzle.h"
|
|
|
|
#include "libs/duration_t.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "gcode/gcode.h"
|
|
|
|
#include "gcode/gcode.h"
|
|
|
|
#include "gcode/parser.h"
|
|
|
|
#include "gcode/parser.h"
|
|
|
@ -125,6 +125,7 @@
|
|
|
|
#include "feature/tmc2130.h"
|
|
|
|
#include "feature/tmc2130.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool Running = true;
|
|
|
|
bool Running = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -166,13 +167,6 @@ millis_t previous_cmd_ms = 0;
|
|
|
|
static millis_t max_inactive_time = 0;
|
|
|
|
static millis_t max_inactive_time = 0;
|
|
|
|
static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
|
|
|
static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
|
|
|
|
|
|
|
|
|
|
|
// Print Job Timer
|
|
|
|
|
|
|
|
#if ENABLED(PRINTCOUNTER)
|
|
|
|
|
|
|
|
PrintCounter print_job_timer = PrintCounter();
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
Stopwatch print_job_timer = Stopwatch();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(Z_DUAL_ENDSTOPS)
|
|
|
|
#if ENABLED(Z_DUAL_ENDSTOPS)
|
|
|
|
float z_endstop_adj;
|
|
|
|
float z_endstop_adj;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|