make sure we define extruders before endstops for obscure reasons
authorJim Morris <morris@wolfman.com>
Wed, 11 Apr 2018 12:33:19 +0000 (13:33 +0100)
committerJim Morris <morris@wolfman.com>
Wed, 11 Apr 2018 12:33:19 +0000 (13:33 +0100)
src/main.cpp

index 4bb591e..50fa6c4 100644 (file)
@@ -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