From dac88f3fb56d3c6f555ca5fe2424dfb3c9c0e57e Mon Sep 17 00:00:00 2001 From: Jim Morris Date: Wed, 11 Apr 2018 13:33:19 +0100 Subject: [PATCH] make sure we define extruders before endstops for obscure reasons --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4bb591e0..50fa6c49 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -132,10 +132,6 @@ void init() { kernel->add_module( new(AHB0) PlayLed() ); // these modules can be completely disabled in the Makefile by adding to EXCLUDE_MODULES - #ifndef NO_TOOLS_ENDSTOPS - kernel->add_module( new(AHB0) Endstops() ); - #endif - #ifndef NO_TOOLS_SWITCH SwitchPool *sp= new SwitchPool(); sp->load_tools(); @@ -153,6 +149,9 @@ void init() { tp->load_tools(); delete tp; #endif + #ifndef NO_TOOLS_ENDSTOPS + kernel->add_module( new(AHB0) Endstops() ); + #endif #ifndef NO_TOOLS_LASER kernel->add_module( new Laser() ); #endif -- 2.20.1