make the tick_info in Block a vector, assigning how ever many registered motors there are
[clinton/Smoothieware.git] / src / main.cpp
index 157b875..028bd3b 100644 (file)
@@ -35,6 +35,7 @@
 #include "ConfigValue.h"
 #include "StepTicker.h"
 #include "SlowTicker.h"
+#include "Robot.h"
 
 // #include "libs/ChaNFSSD/SDFileSystem.h"
 #include "libs/nuts_bolts.h"
@@ -127,7 +128,6 @@ void init() {
     }
 #endif
 
-
     // Create and add main modules
     kernel->add_module( new(AHB0) Player() );
 
@@ -255,7 +255,7 @@ void init() {
     }
 
     // start the timers and interrupts
-    THEKERNEL->conveyor->start();
+    THEKERNEL->conveyor->start(THEROBOT->get_number_registered_motors());
     THEKERNEL->step_ticker->start();
     THEKERNEL->slow_ticker->start();
 }