clean up defines of vector when not actually used
[clinton/Smoothieware.git] / src / modules / robot / Block.cpp
index 09fd56a..9f38d5f 100644 (file)
@@ -22,7 +22,6 @@
 #include <inttypes.h>
 
 using std::string;
-#include <vector>
 
 #define STEP_TICKER_FREQUENCY THEKERNEL->step_ticker->get_frequency()
 
@@ -73,8 +72,8 @@ void Block::clear()
 
     total_move_ticks= 0;
     if(tick_info == nullptr) {
-        // we create this once for this block in AHB0 to save memory
-        tick_info= (tickinfo_t *)AHB0.alloc(sizeof(tickinfo_t) * n_actuators);
+        // we create this once for this block
+        tick_info= new tickinfo_t[n_actuators]; //(tickinfo_t *)malloc(sizeof(tickinfo_t) * n_actuators);
         if(tick_info == nullptr) {
             // if we ran out of memory in AHB0 just stop here
             __debugbreak();