Skip to content

Commit

Permalink
Interminator was still set to be semicolon! Hm.
Browse files Browse the repository at this point in the history
  • Loading branch information
euphy committed Apr 10, 2015
1 parent 494fae7 commit 7c0135e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion comms.ino
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ boolean comms_waitForNextCommand(char *buf)
#endif

// look at it, if it's a terminator, then lets terminate the string
if (ch == INTERMINATOR) {
if (ch == INTERMINATOR || ch == SEMICOLON) {
buf[bufPos] = 0; // null terminate the string
terminated = true;
#ifdef DEBUG_COMMS
Expand Down
12 changes: 9 additions & 3 deletions polargraph_server_a1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Comment the lines below in or out to control what gets compiled.
// Turn on some debugging code
// ===========================
//#define DEBUG
//#define DEBUG_COMMS
#define DEBUG_COMMS
//#define DEBUG_PENLIFT
//#define DEBUG_PIXEL

Expand Down Expand Up @@ -144,7 +144,8 @@ long maxLength = 0;

//static char rowAxis = 'A';
const int INLENGTH = 50;
const char INTERMINATOR = ';';
const char INTERMINATOR = 10;
const char SEMICOLON = ';';

float penWidth = 0.8F; // line width in mm

Expand Down Expand Up @@ -192,7 +193,12 @@ const static byte DIR_MODE_PRESET = 2;
static byte globalDrawDirectionMode = DIR_MODE_AUTO;
#endif

#define READY_STR "READY"
#if MICROCONTROLLER == MC_MEGA
#define READY_STR "READY_100"
#else
#define READY_STR "READY"
#endif

#define RESEND_STR "RESEND"
#define DRAWING_STR "DRAWING"
#define OUT_CMD_SYNC_STR "SYNC,"
Expand Down

0 comments on commit 7c0135e

Please sign in to comment.