overworked the serial responses. Quite difficult, since many texts are Pronterface protocol.

This commit is contained in:
Bernhard Kubicek
2011-11-06 17:33:09 +01:00
parent 1740a83e11
commit 900e0c9bf2
9 changed files with 90 additions and 87 deletions

View File

@ -6,9 +6,11 @@
#include <WProgram.h>
#include "fastio.h"
#define ECHO(x) Serial << "echo: " << x;
#define ECHOLN(x) Serial << "echo: "<<x<<endl;
#include "streaming.h"
#define SERIAL_ECHO(x) Serial << "echo: " << x;
#define SERIAL_ECHOLN(x) Serial << "echo: "<<x<<endl;
#define SERIAL_ERROR(x) Serial << "echo: ERROR: " << x;
#define SERIAL_ERRORLN(x) Serial << "echo: ERROR: " << x<<endl;
void get_command();
void process_commands();
@ -67,7 +69,7 @@ void kill();
//void plan_set_position(float x, float y, float z, float e);
//void st_wake_up();
//void st_synchronize();
void enquecommand(const char *cmd);
void enquecommand(const char *cmd); //put an ascii command at the end of the current buffer.
#ifndef CRITICAL_SECTION_START