Browse Source

Fix tmc_util global vars

pull/1/head
Scott Lahteine 7 years ago
parent
commit
b259bb4670
  1. 3
      Marlin/src/feature/tmc_util.cpp
  2. 4
      Marlin/src/feature/tmc_util.h

3
Marlin/src/feature/tmc_util.cpp

@ -32,6 +32,9 @@
#include "../libs/duration_t.h"
#include "../gcode/gcode.h"
bool report_tmc_status = false;
char extended_axis_codes[11][3] = { "X", "X2", "Y", "Y2", "Z", "Z2", "E0", "E1", "E2", "E3", "E4" };
template<typename TMC>
void tmc_get_current(TMC &st, const char name[]) {
SERIAL_ECHO(name);

4
Marlin/src/feature/tmc_util.h

@ -27,8 +27,8 @@
#include "../inc/MarlinConfig.h"
static bool report_tmc_status = false;
const char extended_axis_codes[11][3] = { "X", "X2", "Y", "Y2", "Z", "Z2", "E0", "E1", "E2", "E3", "E4" };
extern bool report_tmc_status;
extern char extended_axis_codes[11][3];
enum TMC_AxisEnum {
TMC_X, TMC_X2, TMC_Y, TMC_Y2, TMC_Z, TMC_Z2,
TMC_E0, TMC_E1, TMC_E2, TMC_E3, TMC_E4

Loading…
Cancel
Save