added -q ( quiet ) option to the play command
[clinton/Smoothieware.git] / src / libs / Kernel.cpp
index 4ef58a7..3355dae 100644 (file)
@@ -15,6 +15,7 @@ using namespace std;
 #include "libs/Adc.h"
 #include "libs/Digipot.h"
 #include "libs/Pauser.h"
+#include "libs/StreamOutputPool.h"
 
 #include "modules/communication/SerialConsole.h"
 #include "modules/communication/GcodeDispatch.h"
@@ -48,14 +49,14 @@ Kernel::Kernel(){
 
     // Config first, because we need the baud_rate setting before we start serial 
     this->config         = new Config();
-    // Cache the config during init to save reads to the sdcard
-    this->config->config_cache_load();
     // Serial second, because the other modules might want to say something
-    this->serial         = new SerialConsole(USBTX, USBRX, this->config->value(uart0_checksum,baud_rate_setting_checksum)->by_default(9600)->as_number());
+    this->streams        = new StreamOutputPool();
 
+    //this->serial         = new SerialConsole(USBTX, USBRX, this->config->value(uart0_checksum,baud_rate_setting_checksum)->by_default(9600)->as_number());
+   
     this->add_module( this->config );
-    this->add_module( this->serial );
-  
+    //this->add_module( this->serial );
+
     // HAL stuff 
     this->slow_ticker          = new SlowTicker();
     this->step_ticker          = new StepTicker();
@@ -73,9 +74,6 @@ Kernel::Kernel(){
     this->add_module( this->planner        = new Planner()       );
     this->add_module( this->player         = new Player()        );
     this->add_module( this->pauser         = new Pauser()        );
-
-    // Clear the config cache when init is complete
-    this->config->config_cache_clear();
 }
 
 void Kernel::add_module(Module* module){