|
@@ -284,7 +284,11 @@ bool volumetric_enabled = false;
|
284
|
284
|
float filament_size[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(DEFAULT_NOMINAL_FILAMENT_DIA);
|
285
|
285
|
float volumetric_multiplier[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(1.0);
|
286
|
286
|
|
|
287
|
+// The distance that XYZ has been offset by G92. Reset by G28.
|
287
|
288
|
float position_shift[3] = { 0 };
|
|
289
|
+
|
|
290
|
+// This offset is added to the configured home position.
|
|
291
|
+// Set by M206, M428, or menu item. Saved to EEPROM.
|
288
|
292
|
float home_offset[3] = { 0 };
|
289
|
293
|
|
290
|
294
|
// Software Endstops. Default to configured limits.
|
|
@@ -295,23 +299,36 @@ float sw_endstop_max[3] = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS };
|
295
|
299
|
int fanSpeeds[FAN_COUNT] = { 0 };
|
296
|
300
|
#endif
|
297
|
301
|
|
|
302
|
+// The active extruder (tool). Set with T<extruder> command.
|
298
|
303
|
uint8_t active_extruder = 0;
|
|
304
|
+
|
|
305
|
+// Relative Mode. Enable with G91, disable with G90.
|
|
306
|
+static bool relative_mode = false;
|
|
307
|
+
|
299
|
308
|
bool cancel_heatup = false;
|
300
|
309
|
|
301
|
310
|
const char errormagic[] PROGMEM = "Error:";
|
302
|
311
|
const char echomagic[] PROGMEM = "echo:";
|
303
|
312
|
const char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'};
|
304
|
313
|
|
305
|
|
-static bool relative_mode = false; //Determines Absolute or Relative Coordinates
|
306
|
314
|
static int serial_count = 0;
|
307
|
|
-static char* seen_pointer; ///< A pointer to find chars in the command string (X, Y, Z, E, etc.)
|
308
|
|
-const char* queued_commands_P = NULL; /* pointer to the current line in the active sequence of commands, or NULL when none */
|
|
315
|
+
|
|
316
|
+// GCode parameter pointer used by code_seen(), code_value(), etc.
|
|
317
|
+static char* seen_pointer;
|
|
318
|
+
|
|
319
|
+// Next Immediate GCode Command pointer. NULL if none.
|
|
320
|
+const char* queued_commands_P = NULL;
|
|
321
|
+
|
309
|
322
|
const int sensitive_pins[] = SENSITIVE_PINS; ///< Sensitive pin list for M42
|
|
323
|
+
|
310
|
324
|
// Inactivity shutdown
|
311
|
325
|
millis_t previous_cmd_ms = 0;
|
312
|
326
|
static millis_t max_inactive_time = 0;
|
313
|
327
|
static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
|
328
|
+
|
|
329
|
+// Print Job Timer
|
314
|
330
|
Stopwatch print_job_timer = Stopwatch();
|
|
331
|
+
|
315
|
332
|
static uint8_t target_extruder;
|
316
|
333
|
|
317
|
334
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|