From b259bb46706fbd5034ddf1881d46159cd79232ef Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 25 Dec 2017 09:05:31 -0600 Subject: [PATCH] Fix tmc_util global vars --- Marlin/src/feature/tmc_util.cpp | 3 +++ Marlin/src/feature/tmc_util.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/src/feature/tmc_util.cpp b/Marlin/src/feature/tmc_util.cpp index 64a83e0e32..3a70528cfb 100644 --- a/Marlin/src/feature/tmc_util.cpp +++ b/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 void tmc_get_current(TMC &st, const char name[]) { SERIAL_ECHO(name); diff --git a/Marlin/src/feature/tmc_util.h b/Marlin/src/feature/tmc_util.h index 5ccd7560fa..72d3b15bb5 100644 --- a/Marlin/src/feature/tmc_util.h +++ b/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