From 88d12a762a354cc91e6c1016198ab2ca62b0581a Mon Sep 17 00:00:00 2001 From: Wing Tang Wong Date: Tue, 16 Sep 2014 14:29:44 -0700 Subject: [PATCH 1/2] Added #ifndef DELTA wrapper to float delta --- Marlin/Marlin_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 493d64985a..0e9a373e7c 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -318,7 +318,10 @@ bool cancel_heatup = false ; //=========================================================================== const char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'}; static float destination[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0}; + static float delta[3] = {0.0, 0.0, 0.0}; +#endif + static float offset[3] = {0.0, 0.0, 0.0}; static bool home_all_axis = true; static float feedrate = 1500.0, next_feedrate, saved_feedrate; From 58eabd21fb15c86d5f8403b3da97e03549c07be2 Mon Sep 17 00:00:00 2001 From: Wing Tang Wong Date: Tue, 16 Sep 2014 14:31:58 -0700 Subject: [PATCH 2/2] Added ifndef --- Marlin/Marlin_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 0e9a373e7c..97b7b3b763 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -319,6 +319,7 @@ bool cancel_heatup = false ; const char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'}; static float destination[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0}; +#ifndef DELTA static float delta[3] = {0.0, 0.0, 0.0}; #endif