From fefe3188a7d17e62b360c3ee139a87a31640ebce Mon Sep 17 00:00:00 2001 From: Liam Fraser Date: Sun, 14 Jun 2015 17:13:43 +0100 Subject: [PATCH] Fix String Processing This was preventing digitalWrite and analogWrite from working --- src/duino/duino.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duino/duino.ino b/src/duino/duino.ino index 7688f42..702ab44 100644 --- a/src/duino/duino.ino +++ b/src/duino/duino.ino @@ -64,9 +64,9 @@ void process() { aux[3] = '\0'; } else { strncpy(val, messageBuffer + 4, 3); - val[4] = '\0'; + val[3] = '\0'; strncpy(aux, messageBuffer + 7, 3); - aux[4] = '\0'; + aux[3] = '\0'; } // Serial.println(cmd);