Fix tmc_util global vars

This commit is contained in:
Scott Lahteine 2017-12-25 09:05:31 -06:00
parent 4ef965cc40
commit b259bb4670
2 changed files with 5 additions and 2 deletions

View file

@ -32,6 +32,9 @@
#include "../libs/duration_t.h" #include "../libs/duration_t.h"
#include "../gcode/gcode.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> template<typename TMC>
void tmc_get_current(TMC &st, const char name[]) { void tmc_get_current(TMC &st, const char name[]) {
SERIAL_ECHO(name); SERIAL_ECHO(name);

View file

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