#include "libs/Module.h"
#include "libs/Kernel.h"
-#include <math.h>
-using namespace std;
-#include <vector>
#include "ToolManager.h"
#include "Tool.h"
#include "PublicDataRequest.h"
#include "libs/StreamOutput.h"
#include "FileStream.h"
+#include <math.h>
+
ToolManager::ToolManager()
{
active_tool = 0;
} else {
if(new_tool != this->active_tool) {
// We must wait for an empty queue before we can disable the current extruder
- THEKERNEL->conveyor->wait_for_empty_queue();
+ THEKERNEL->conveyor->wait_for_idle();
this->tools[active_tool]->deselect();
this->active_tool = new_tool;
this->current_tool_name = this->tools[active_tool]->get_name();